summaryrefslogtreecommitdiffstats
path: root/x11vnc/macosxCG.c
diff options
context:
space:
mode:
authorrunge <runge>2007-12-16 18:37:22 +0000
committerrunge <runge>2007-12-16 18:37:22 +0000
commit649f5b2b4615ae67d97eff7f3fa246a1ac41edf9 (patch)
tree3e3d3524182cc844b76c239c9a2f3de89e0cfa38 /x11vnc/macosxCG.c
parent899c920eb4708e525c6555e2a6f043c3f999bbcb (diff)
downloadlibtdevnc-649f5b2b4615ae67d97eff7f3fa246a1ac41edf9.tar.gz
libtdevnc-649f5b2b4615ae67d97eff7f3fa246a1ac41edf9.zip
x11vnc: setup remote-ctrl file by default on macosx. improve
tkx11vnc wrt attaching to existing server in icon/tray mode.
Diffstat (limited to 'x11vnc/macosxCG.c')
-rw-r--r--x11vnc/macosxCG.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/x11vnc/macosxCG.c b/x11vnc/macosxCG.c
index 8152aa3..bd11f6a 100644
--- a/x11vnc/macosxCG.c
+++ b/x11vnc/macosxCG.c
@@ -32,7 +32,7 @@ int macosxCG_get_cursor(void);
void macosxCG_init_key_table(void);
void macosxCG_key_inject(int down, unsigned int keysym);
-CGDirectDisplayID displayID = NULL;
+CGDirectDisplayID displayID = 0;
extern void macosx_log(char *);
extern int collect_non_X_xdamage(int x_in, int y_in, int w_in, int h_in, int call);
@@ -100,7 +100,7 @@ extern void macosxCGP_screensaver_timer_off(void);
extern void macosxCGP_screensaver_timer_on(void);
void macosxCG_init(void) {
- if (displayID == NULL) {
+ if (displayID == 0) {
macosx_log("macosxCG_init: initializing display.\n");
#if 0
dragum();