summaryrefslogtreecommitdiffstats
path: root/x11vnc/xrecord.c
diff options
context:
space:
mode:
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