summaryrefslogtreecommitdiffstats
path: root/x11vnc/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/screen.c')
-rw-r--r--x11vnc/screen.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/x11vnc/screen.c b/x11vnc/screen.c
index 067d144..d0851f6 100644
--- a/x11vnc/screen.c
+++ b/x11vnc/screen.c
@@ -1028,6 +1028,11 @@ void do_new_fb(int reset_mem) {
settle_clients(1);
}
+#ifdef MACOSX
+ if (macosx_console) {
+ macosxCG_fini();
+ }
+#endif
if (reset_mem == 1) {
/* reset_mem == 2 is a hack for changing users... */
clean_shm(0);
@@ -1694,7 +1699,7 @@ if (db) fprintf(stderr, "initialize_raw_fb reset\n");
raw_fb_addr = NULL;
}
#endif
-
+
if (raw_fb_addr || raw_fb_seek) {
if (raw_fb_shm) {
shmdt(raw_fb_addr);
@@ -3196,6 +3201,9 @@ void initialize_screen(int *argc, char **argv, XImage *fb) {
if (screen && http_dir) {
http_connections(1);
}
+ if (unix_sock) {
+ unix_sock_fd = listen_unix(unix_sock);
+ }
} else {
/* set set frameBuffer member below. */
rfbLog("rfbNewFramebuffer(0x%x, 0x%x, %d, %d, %d, %d, %d)\n",