summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r--x11vnc/remote.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c
index 72b2221..8fd50c9 100644
--- a/x11vnc/remote.c
+++ b/x11vnc/remote.c
@@ -3598,6 +3598,20 @@ char *process_remote_cmd(char *cmd, int stringonly) {
slow_fb, w);
slow_fb = w;
+ } else if (strstr(p, "xrefresh") == p) {
+ double w;
+ COLON_CHECK("xrefresh:")
+ if (query) {
+ snprintf(buf, bufn, "ans=%s%s%.2f", p, co, xrefresh);
+ goto qry;
+ }
+ p += strlen("xrefresh:");
+ w = atof(p);
+ if (w <= 0) w = 0.0;
+ rfbLog("remote_cmd: setting xrefresh delay %.2f -> %.2f\n",
+ xrefresh, w);
+ xrefresh = w;
+
} else if (strstr(p, "wait") == p) {
int w;
COLON_CHECK("wait:")