summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2009-12-15 09:17:37 -0500
committerrunge <runge@karlrunge.com>2009-12-15 09:17:37 -0500
commitd6c012e9688d32d80c288541615c01cd082ecf0a (patch)
tree83ab0988d56d3a4f29cd419a8d20381fb35ed128 /x11vnc/remote.c
parent8f5c9ef01ef9101cf8f8d8f1eacdaab27ac7c2c8 (diff)
downloadlibtdevnc-d6c012e9688d32d80c288541615c01cd082ecf0a.tar.gz
libtdevnc-d6c012e9688d32d80c288541615c01cd082ecf0a.zip
X props names via env var. fakebuttonevent action, connect_switch and
ultravnc_repeater.pl scripts, find_display try FD_XDM on failure, -quiet and -storepasswd changes, better port 113 testing.
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 71abec8..65adad2 100644
--- a/x11vnc/remote.c
+++ b/x11vnc/remote.c
@@ -4233,6 +4233,21 @@ char *process_remote_cmd(char *cmd, int stringonly) {
goto done;
}
+ if (strstr(p, "fakebuttonevent") == p) {
+ int mb, down = 0;
+ NOTAPP
+ COLON_CHECK("fakebuttonevent:")
+ p += strlen("fakebuttonevent:");
+ rfbLog("remote_cmd: insert fakebuttonevent: %s\n", p);
+ if (sscanf(p, "%d,%d", &mb, &down) == 2) {
+ X_LOCK;
+ rfbLog("remote_cmd: XTestFakeButtonEvent(mb=%d, down=%d)\n", mb, down);
+ XTestFakeButtonEvent_wr(dpy, mb, down ? True : False, CurrentTime);
+ X_UNLOCK;
+ }
+
+ goto done;
+ }
if (strstr(p, "sleep") == p) {
NOTAPP
COLON_CHECK("sleep:")