diff options
author | Jamey Sharp <jamey@minilop.net> | 2006-10-12 17:42:48 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2006-10-12 17:44:19 -0700 |
commit | d914d05d34991b4cfa3af411fd2a3e281ea0e73b (patch) | |
tree | c69c4eb7c11bc3099a17813c80658acf6a577618 /src | |
parent | a8abbe92f0486f174fb89ca2c81eabede646bf32 (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.c | 4 |
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; } |