From 1b9082bc8739e5ab186092ca1dcff1736eb91c0e Mon Sep 17 00:00:00 2001 From: runge Date: Wed, 31 Jan 2007 15:41:42 +0000 Subject: x11vnc: -reflect, -N. -ncache, FINDDISPLAY, FINDCREATEDISPLAY, improvements. MODTWEAK_LOWEST workaround. --- x11vnc/remote.c | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'x11vnc/remote.c') diff --git a/x11vnc/remote.c b/x11vnc/remote.c index 93f8de5..d8dfa5c 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -2790,7 +2790,6 @@ char *process_remote_cmd(char *cmd, int stringonly) { if (orig != ncache_xrootpmap) { do_new_fb(1); } - } else if (!strcmp(p, "noncache_no_rootpixmap")) { int orig = ncache_xrootpmap; if (query) { @@ -2813,6 +2812,38 @@ char *process_remote_cmd(char *cmd, int stringonly) { set_ncache_xrootpmap(); } + } else if (!strcmp(p, "ncache_keep_anims")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, ncache_keep_anims); + goto qry; + } + kde_no_animate(0); + ncache_keep_anims = 1; + rfbLog("remote_cmd: set -ncache_keep_anims\n"); + } else if (!strcmp(p, "noncache_keep_anims")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, !ncache_keep_anims); + goto qry; + } + ncache_keep_anims = 0; + kde_no_animate(1); + rfbLog("remote_cmd: disabled -ncache_keep_anims\n"); + + } else if (!strcmp(p, "ncache_old_wm")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, ncache_old_wm); + goto qry; + } + ncache_old_wm = 1; + rfbLog("remote_cmd: set -ncache_old_wm\n"); + } else if (!strcmp(p, "noncache_old_wm")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, !ncache_old_wm); + goto qry; + } + ncache_old_wm = 0; + rfbLog("remote_cmd: disabled -ncache_old_wm\n"); + } else if (!strcmp(p, "ncache")) { if (query) { snprintf(buf, bufn, "ans=%s:%d", p, !!ncache); -- cgit v1.2.1