summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-02-24 07:49:34 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-02-24 07:49:34 +1000
commit05c86e53c0bae30e58b32b94e191c8720990918a (patch)
tree700fab21c8028ce622e894528808bb2bde3de739
parentc648441036cf5ffc5225cd484e2c906d374f0a4b (diff)
Fix version check in _XIAllowEvents
Commit 5810d0797160a97012664ffe719a59e1b288a525 changed _XIAllowEvents() to use _XiCheckVersion() instead of _XiCheckExtInit() to avoid a double display unlock, but it failed to correctly check for the version, since we should set have_XI22 to True for every version greater or equal to 2.2. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/XIAllowEvents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XIAllowEvents.c b/src/XIAllowEvents.c
index 52c17ab..e7be099 100644
--- a/src/XIAllowEvents.c
+++ b/src/XIAllowEvents.c
@@ -50,7 +50,7 @@ _XIAllowEvents(Display *dpy, int deviceid, int event_mode, Time time,
if (_XiCheckExtInit(dpy, XInput_2_0, extinfo) == -1)
return (NoSuchExtension);
- if (_XiCheckVersion(extinfo, XInput_2_2) == 0)
+ if (_XiCheckVersion(extinfo, XInput_2_2) >= 0)
have_XI22 = True;
if (have_XI22)