Remove incorrect UnlockDisplay and SyncHandle from XDamageQueryVersion
authorJosh Triplett <josh@freedesktop.org>
Mon, 16 Oct 2006 09:58:24 +0000 (02:58 -0700)
committerJamey Sharp <jamey@minilop.net>
Mon, 16 Oct 2006 10:08:45 +0000 (03:08 -0700)
XDamageQueryVersion calls UnlockDisplay and SyncHandle, without a matching
LockDisplay.  This triggers an assertion in Xlib/XCB designed to catch these
kinds of bugs.  Remove the two calls, which fixes the assertion.

Thanks to Mike Auty <mike.auty@gmail.com> for the report.

src/Xdamage.c

index 181a49f..ba61371 100644 (file)
@@ -305,8 +305,6 @@ XDamageQueryVersion (Display *dpy,
 
     *major_versionp = info->major_version;
     *minor_versionp = info->minor_version;
-    UnlockDisplay (dpy);
-    SyncHandle ();
     return 1;
 }