diff options
author | Paul "TBBle" Hampson <Paul.Hampson@Pobox.com> | 2009-04-19 06:52:30 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-19 19:52:35 +1000 |
commit | 3a699cda35a7c190010e5a974cd7a4e7be9df049 (patch) | |
tree | 87d0f5bf87213092be3d5bfa2435e70f50570219 /src/XIQueryVersion.c | |
parent | 6ad47bc1338ba96c4a43a33ee3633f41e9543bd6 (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.c | 5 |
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 |