summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-10-12 17:42:48 -0700
committerJamey Sharp <jamey@minilop.net>2006-10-12 17:44:19 -0700
commitd914d05d34991b4cfa3af411fd2a3e281ea0e73b (patch)
treec69c4eb7c11bc3099a17813c80658acf6a577618 /src
parenta8abbe92f0486f174fb89ca2c81eabede646bf32 (diff)
Do not call UnlockDisplay without calling LockDisplay.
Thanks to Magnus Kessler <Magnus.Kessler@gmx.net> for reporting this bug and a correct fix.
Diffstat (limited to 'src')
-rw-r--r--src/Xrandr.c4
1 files 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;
}