summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-08-30 13:00:20 -0400
committerKristian Høgsberg <krh@redhat.com>2007-10-13 18:46:01 -0400
commitc095f7e46adccdc65dc6623c1f73e87c5be782ad (patch)
tree29348f5df706bfefe709d14d326f6f93896bdcde /progs
parentd0b68b215d7f172fb76f02745208fb9c5024f23d (diff)
Do XSync() before resetting error handler.
Diffstat (limited to 'progs')
-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 d0bbd1b0fc..6c340fd7f9 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);