From d914d05d34991b4cfa3af411fd2a3e281ea0e73b Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Thu, 12 Oct 2006 17:42:48 -0700 Subject: Do not call UnlockDisplay without calling LockDisplay. Thanks to Magnus Kessler for reporting this bug and a correct fix. --- src/Xrandr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Xrandr.c b/src/Xrandr.c index 32537b4..7f256a7 100644 --- a/src/Xrandr.c +++ b/src/Xrandr.c @@ -390,11 +390,11 @@ Status XRRQueryVersion (Display *dpy, xrri->major_version = rep.majorVersion; xrri->minor_version = rep.minorVersion; xrri->has_rates = _XRRHasRates (xrri->major_version, xrri->minor_version); + UnlockDisplay (dpy); + SyncHandle (); } *major_versionp = xrri->major_version; *minor_versionp = xrri->minor_version; - UnlockDisplay (dpy); - SyncHandle (); return 1; } -- cgit v1.2.3