diff options
author | runge <runge@karlrunge.com> | 2009-12-18 11:46:10 -0500 |
---|---|---|
committer | runge <runge@karlrunge.com> | 2009-12-18 11:46:10 -0500 |
commit | 06987b1c0216429e6744bf5a2c306d0e6853f879 (patch) | |
tree | f2a3f6e24d5742c4297130cdfc5673550ca53bae /x11vnc/remote.c | |
parent | d6c012e9688d32d80c288541615c01cd082ecf0a (diff) | |
download | libtdevnc-06987b1c0216429e6744bf5a2c306d0e6853f879.tar.gz libtdevnc-06987b1c0216429e6744bf5a2c306d0e6853f879.zip |
x11vnc: fix keycode and other remote control actions under
DIRECT: with an extra XFlush and other safety measures.
fflush(stderr) much in su_verify. Make the -unixpw env. vars
UNIXPW_DISABLE_SSL and UNIXPW_DISABLE_LOCALHOST work correctly.
Make -loopbg actually imply -bg.
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r-- | x11vnc/remote.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c index 65adad2..bb6491a 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -4176,6 +4176,7 @@ char *process_remote_cmd(char *cmd, int stringonly) { } else { XTestFakeKeyEvent_wr(dpy, kc, down, CurrentTime); } + XFlush_wr(dpy); X_UNLOCK; } goto done; @@ -4243,6 +4244,7 @@ char *process_remote_cmd(char *cmd, int stringonly) { X_LOCK; rfbLog("remote_cmd: XTestFakeButtonEvent(mb=%d, down=%d)\n", mb, down); XTestFakeButtonEvent_wr(dpy, mb, down ? True : False, CurrentTime); + XFlush_wr(dpy); X_UNLOCK; } |