summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
authorrunge <runge>2006-10-12 00:51:30 +0000
committerrunge <runge>2006-10-12 00:51:30 +0000
commita5baf57ba627ca8e85b1156a0ea09ca376d0b8e4 (patch)
treef95d5e59aa0a930b4e317b6dddac509a48752c23 /x11vnc/remote.c
parenta255783ee09b15e1cae63a44b6494eeeebd540a9 (diff)
downloadlibtdevnc-a5baf57ba627ca8e85b1156a0ea09ca376d0b8e4.tar.gz
libtdevnc-a5baf57ba627ca8e85b1156a0ea09ca376d0b8e4.zip
x11vnc: -cursor_drag for DnD, etc.
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r--x11vnc/remote.c15
1 files changed, 15 insertions, 0 deletions
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) {