aboutsummaryrefslogtreecommitdiffstats
path: root/progs/xdemos/pbutil.c
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2007-08-30 13:00:20 -0400
committerKristian Høgsberg <[email protected]>2007-10-13 18:46:01 -0400
commitc095f7e46adccdc65dc6623c1f73e87c5be782ad (patch)
tree29348f5df706bfefe709d14d326f6f93896bdcde /progs/xdemos/pbutil.c
parentd0b68b215d7f172fb76f02745208fb9c5024f23d (diff)
Do XSync() before resetting error handler.
Diffstat (limited to 'progs/xdemos/pbutil.c')
-rw-r--r--progs/xdemos/pbutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/xdemos/pbutil.c b/progs/xdemos/pbutil.c
index d0bbd1b0fce..6c340fd7f9e 100644
--- a/progs/xdemos/pbutil.c
+++ b/progs/xdemos/pbutil.c
@@ -393,6 +393,7 @@ CreatePbuffer(Display *dpy, int screen, FBCONFIG config,
pBuffer = None;
}
+ XSync(dpy, False);
/* Restore original X error handler */
(void) XSetErrorHandler(oldHandler);