From c095f7e46adccdc65dc6623c1f73e87c5be782ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 30 Aug 2007 13:00:20 -0400 Subject: [PATCH] Do XSync() before resetting error handler. --- progs/xdemos/pbutil.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2