From 31829be123a9ce58bf8e0c4718815b7b63d0d512 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Mon, 16 Oct 2006 02:58:24 -0700 Subject: 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 for the report. --- src/Xdamage.c | 2 -- 1 file changed, 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; } -- cgit v1.2.1