summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
authorrunge <runge>2007-01-02 05:15:07 +0000
committerrunge <runge>2007-01-02 05:15:07 +0000
commitc88d830f5591913f2e5e763814978e2877f367ec (patch)
tree217ae1113daa5bced6f21c34eb1a923bcd8cec18 /x11vnc/remote.c
parent833f06025fbd2fa8d4d83ccf8ab068c8060663de (diff)
downloadlibtdevnc-c88d830f5591913f2e5e763814978e2877f367ec.tar.gz
libtdevnc-c88d830f5591913f2e5e763814978e2877f367ec.zip
x11vnc: more -ncache improvements.
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r--x11vnc/remote.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c
index 775816c..64a6369 100644
--- a/x11vnc/remote.c
+++ b/x11vnc/remote.c
@@ -2748,6 +2748,36 @@ char *process_remote_cmd(char *cmd, int stringonly) {
ncache_copyrect = 0;
rfbLog("remote_cmd: disabled -ncache_cr %d\n", ncache_copyrect);
+ } else if (!strcmp(p, "ncache_no_moveraise")) {
+ if (query) {
+ snprintf(buf, bufn, "ans=%s:%d", p, !ncache_wf_raises);
+ goto qry;
+ }
+ ncache_wf_raises = 0;
+ rfbLog("remote_cmd: set -ncache_no_moveraise\n");
+ } else if (!strcmp(p, "noncache_no_moveraise")) {
+ if (query) {
+ snprintf(buf, bufn, "ans=%s:%d", p, ncache_wf_raises);
+ goto qry;
+ }
+ ncache_wf_raises = 1;
+ rfbLog("remote_cmd: disabled -ncache_no_moveraise\n");
+
+ } else if (!strcmp(p, "ncache_no_dtchange")) {
+ if (query) {
+ snprintf(buf, bufn, "ans=%s:%d", p, !ncache_dt_change);
+ goto qry;
+ }
+ ncache_dt_change = 0;
+ rfbLog("remote_cmd: set -ncache_no_dt_change\n");
+ } else if (!strcmp(p, "noncache_no_dtchange")) {
+ if (query) {
+ snprintf(buf, bufn, "ans=%s:%d", p, ncache_dt_change);
+ goto qry;
+ }
+ ncache_dt_change = 1;
+ rfbLog("remote_cmd: disabled -ncache_no_dt_change\n");
+
} else if (!strcmp(p, "ncache")) {
if (query) {
snprintf(buf, bufn, "ans=%s:%d", p, !!ncache);