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)
commit31829be123a9ce58bf8e0c4718815b7b63d0d512
tree58d04e7dd11fdf42021d29a122d9b7e9818b0c91
parent62ffc46be52244b252dfab643bdfa1aa862820f0
Remove incorrect UnlockDisplay and SyncHandle from XDamageQueryVersion

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