summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r--x11vnc/remote.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c
index 64e915e..8fb7e51 100644
--- a/x11vnc/remote.c
+++ b/x11vnc/remote.c
@@ -984,8 +984,16 @@ char *process_remote_cmd(char *cmd, int stringonly) {
snprintf(buf, bufn, "ans=%s:%d", p, cmap8to24);
goto qry;
}
+ if (overlay) {
+ rfbLog("disabling -overlay in -8to24 mode.\n");
+ overlay = 0;
+ }
rfbLog("remote_cmd: turning on -8to24 mode.\n");
cmap8to24 = 1;
+ if (overlay) {
+ rfbLog("disabling -overlay in -8to24 mode.\n");
+ overlay = 0;
+ }
do_new_fb(0);
} else if (!strcmp(p, "no8to24")) {