diff options
author | runge <runge> | 2006-11-21 22:16:23 +0000 |
---|---|---|
committer | runge <runge> | 2006-11-21 22:16:23 +0000 |
commit | 27a884d2f3775cf4d97ea8f3d7433cbe2deebbfc (patch) | |
tree | a4b7c9f0ae519b0afa0d14b646abca3ad01b35a8 /x11vnc/remote.c | |
parent | 05ba45f72e70b4372ef05a8aca34a3bddcfaeb71 (diff) | |
download | libtdevnc-27a884d2f3775cf4d97ea8f3d7433cbe2deebbfc.tar.gz libtdevnc-27a884d2f3775cf4d97ea8f3d7433cbe2deebbfc.zip |
x11vnc: Mac OS X fb fixes and cuttext, -nodpms option, local user wireframing
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r-- | x11vnc/remote.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c index a6cf9ae..a5ea40d 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -2774,6 +2774,21 @@ char *process_remote_cmd(char *cmd, int stringonly) { rfbLog("remote_cmd: enabling -nowireframe mode.\n"); wireframe = 0; + } else if (!strcmp(p, "wireframelocal") || !strcmp(p, "wfl")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, wireframe_local); + goto qry; + } + rfbLog("remote_cmd: enabling -wireframelocal mode.\n"); + wireframe_local = 1; + } else if (!strcmp(p, "nowireframelocal") || !strcmp(p, "nowfl")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, !wireframe_local); + goto qry; + } + rfbLog("remote_cmd: enabling -nowireframelocal mode.\n"); + wireframe_local = 0; + } else if (strstr(p, "wirecopyrect") == p) { COLON_CHECK("wirecopyrect:") if (query) { @@ -3385,6 +3400,21 @@ char *process_remote_cmd(char *cmd, int stringonly) { rfbLog("remote_cmd: turning on -nofbpm mode.\n"); watch_fbpm = 1; + } else if (!strcmp(p, "dpms")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, !watch_dpms); + goto qry; + } + rfbLog("remote_cmd: turning off -nodpms mode.\n"); + watch_dpms = 0; + } else if (!strcmp(p, "nodpms")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, watch_dpms); + goto qry; + } + rfbLog("remote_cmd: turning on -nodpms mode.\n"); + watch_dpms = 1; + } else if (strstr(p, "fs") == p) { COLON_CHECK("fs:") if (query) { |