Always call SyncHandle after issuing an X request.
authorJamey Sharp <jamey@minilop.net>
Sat, 10 Apr 2010 00:26:07 +0000 (17:26 -0700)
committerJamey Sharp <jamey@minilop.net>
Sat, 10 Apr 2010 00:26:07 +0000 (17:26 -0700)
src/Xdamage.c

index 174bb09..e98bdf7 100644 (file)
@@ -94,6 +94,7 @@ XDamageExtAddDisplay (XDamageExtInfo  *extinfo,
        info->major_version = rep.majorVersion;
        info->minor_version = rep.minorVersion;
        UnlockDisplay (dpy);
+       SyncHandle ();
     } else {
        /* The server doesn't have this extension.
         * Use a private Xlib-internal extension to hang the close_display