Do XSync() before resetting error handler.
authorKristian Høgsberg <krh@redhat.com>
Thu, 30 Aug 2007 17:00:20 +0000 (13:00 -0400)
committerKristian Høgsberg <krh@redhat.com>
Sat, 13 Oct 2007 22:46:01 +0000 (18:46 -0400)
progs/xdemos/pbutil.c

index d0bbd1b0fce56a9df74a0df29eaa1a18d0969508..6c340fd7f9e138a0cd0cf7ce4afc5d75ef2a167a 100644 (file)
@@ -393,6 +393,7 @@ CreatePbuffer(Display *dpy, int screen, FBCONFIG config,
       pBuffer = None;
    }
 
+   XSync(dpy, False);
    /* Restore original X error handler */
    (void) XSetErrorHandler(oldHandler);