summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r--x11vnc/remote.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c
index bb6491a..d3ff58a 100644
--- a/x11vnc/remote.c
+++ b/x11vnc/remote.c
@@ -5920,7 +5920,9 @@ char *process_remote_cmd(char *cmd, int stringonly) {
grab_state(&ptr_grabbed, &kbd_grabbed);
snprintf(buf, bufn, "aro=%s:%d,%d", p, ptr_grabbed, kbd_grabbed);
- rfbLog("remote_cmd: ptr,kbd: %s\n", buf);
+ if (dpy) {
+ rfbLog("remote_cmd: ptr,kbd: %s\n", buf);
+ }
goto qry;
}