summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2006-10-16 02:58:24 -0700
committerJamey Sharp <jamey@minilop.net>2006-10-16 03:08:45 -0700
commit31829be123a9ce58bf8e0c4718815b7b63d0d512 (patch)
tree58d04e7dd11fdf42021d29a122d9b7e9818b0c91
parent62ffc46be52244b252dfab643bdfa1aa862820f0 (diff)
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.
-rw-r--r--src/Xdamage.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Xdamage.c b/src/Xdamage.c
index 181a49f..ba61371 100644
--- a/src/Xdamage.c
+++ b/src/Xdamage.c
@@ -305,8 +305,6 @@ XDamageQueryVersion (Display *dpy,
*major_versionp = info->major_version;
*minor_versionp = info->minor_version;
- UnlockDisplay (dpy);
- SyncHandle ();
return 1;
}