summaryrefslogtreecommitdiff
path: root/src/XIQueryVersion.c
diff options
context:
space:
mode:
authorPaul "TBBle" Hampson <Paul.Hampson@Pobox.com>2009-04-19 06:52:30 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-19 19:52:35 +1000
commit3a699cda35a7c190010e5a974cd7a4e7be9df049 (patch)
tree87d0f5bf87213092be3d5bfa2435e70f50570219 /src/XIQueryVersion.c
parent6ad47bc1338ba96c4a43a33ee3633f41e9543bd6 (diff)
libxi: Unlock display after XIQueryVersion
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/XIQueryVersion.c')
-rw-r--r--src/XIQueryVersion.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/XIQueryVersion.c b/src/XIQueryVersion.c
index e4c632e..bf49022 100644
--- a/src/XIQueryVersion.c
+++ b/src/XIQueryVersion.c
@@ -35,7 +35,10 @@ XIQueryVersion(Display *dpy, int *major_return, int *minor_return)
XExtDisplayInfo *info = XInput_find_display(dpy);
LockDisplay(dpy);
- return _xiQueryVersion(dpy, major_return, minor_return, info);
+ if (_xiQueryVersion(dpy, major_return, minor_return, info) != BadRequest) {
+ UnlockDisplay(dpy);
+ SyncHandle();
+ }
}
_X_HIDDEN Status