diff options
author | runge <runge> | 2006-11-13 15:33:00 +0000 |
---|---|---|
committer | runge <runge> | 2006-11-13 15:33:00 +0000 |
commit | 4a83f87609b9d53b2983806be58ccd02498a5cd3 (patch) | |
tree | a79c96930a97fb162edd1765adece43425f8db8a /x11vnc/remote.c | |
parent | 5f9693d4a2c511f8f2ea069373807c5f36ac1459 (diff) | |
download | libtdevnc-4a83f876.tar.gz libtdevnc-4a83f876.zip |
x11vnc: Native Mac OS X support.
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r-- | x11vnc/remote.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c index aa581e8..a6cf9ae 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -579,7 +579,7 @@ int remote_control_access_ok(void) { rfbLog(" unknown-%d\n", i+1); } } - XFree(xha); + XFree_wr(xha); return 0; } @@ -3888,6 +3888,20 @@ char *process_remote_cmd(char *cmd, int stringonly) { crash_debug = 0; rfbLog("set crash_debug to: %d\n", crash_debug); + } else if (!strcmp(p, "macnosaver")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, macosx_noscreensaver); goto qry; + } + rfbLog("remote_cmd: turn on macnosaver.\n"); + macosx_noscreensaver = 1; + } else if (!strcmp(p, "macsaver")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, !macosx_noscreensaver); goto qry; + } + rfbLog("remote_cmd: turn off macnosaver.\n"); + macosx_noscreensaver = 0; + + } else if (strstr(p, "hack") == p) { /* skip-cmd-list */ COLON_CHECK("hack:") if (query) { @@ -3994,7 +4008,6 @@ char *process_remote_cmd(char *cmd, int stringonly) { " of the system tray.\n", id); } - } else if (query) { /* read-only variables that can only be queried: */ |