From a5baf57ba627ca8e85b1156a0ea09ca376d0b8e4 Mon Sep 17 00:00:00 2001 From: runge Date: Thu, 12 Oct 2006 00:51:30 +0000 Subject: x11vnc: -cursor_drag for DnD, etc. --- x11vnc/remote.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'x11vnc/remote.c') diff --git a/x11vnc/remote.c b/x11vnc/remote.c index 3db6d30..aa581e8 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -2400,6 +2400,21 @@ char *process_remote_cmd(char *cmd, int stringonly) { rfbLog("remote_cmd: turning off cursorpos mode.\n"); cursor_pos_updates = 0; + } else if (!strcmp(p, "cursor_drag")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, cursor_drag_changes); + goto qry; + } + cursor_drag_changes = 1; + rfbLog("remote_cmd: setting cursor_drag_changes: %d.\n", cursor_drag_changes); + } else if (!strcmp(p, "nocursor_drag")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, !cursor_drag_changes); + goto qry; + } + cursor_drag_changes = 0; + rfbLog("remote_cmd: setting cursor_drag_changes: %d.\n", cursor_drag_changes); + } else if (strstr(p, "cursor") == p) { COLON_CHECK("cursor:") if (query) { -- cgit v1.2.3