summaryrefslogtreecommitdiffstats
path: root/x11vnc/xrecord.c
diff options
context:
space:
mode:
authorrunge <runge>2009-01-10 23:03:24 +0000
committerrunge <runge>2009-01-10 23:03:24 +0000
commit198382dcf3c9b86919b7b69b9cedff7a162ba9cf (patch)
treea06b4a4d410e28439da2b63b4848bc142f918292 /x11vnc/xrecord.c
parent91174efbb8e2fb09520477af6593f99b865777b0 (diff)
downloadlibtdevnc-198382dc.tar.gz
libtdevnc-198382dc.zip
x11vnc: fix failure of -8to24 on default depth 24 due to
nonstandard indexed color support changes. Fix small window for failure after XSendEvent selection call; add env var. X11VNC_SENDEVENT_SYNC=1 to take even more care.
Diffstat (limited to 'x11vnc/xrecord.c')
-rw-r--r--x11vnc/xrecord.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x11vnc/xrecord.c b/x11vnc/xrecord.c
index 81b319b..3999154 100644
--- a/x11vnc/xrecord.c
+++ b/x11vnc/xrecord.c
@@ -135,8 +135,8 @@ static void xrecord_grabserver(int start) {
XSetErrorHandler(old_handler);
return;
}
- XSetErrorHandler(old_handler);
XFlush_wr(gdpy_data);
+ XSetErrorHandler(old_handler);
#else
if (!rc || !old_handler) {}
#endif