[PATCH XTS] lib/Xinput: check for the new device usage types
Peter Hutterer
peter.hutterer at who-t.net
Mon Jan 2 22:00:09 PST 2012
IsXExtensionPointer/Keyboard were introduced with XI 1.4, check for those
too before claiming there aren't any devices.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
xts5/src/lib/XInput.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/xts5/src/lib/XInput.c b/xts5/src/lib/XInput.c
index 067fca0..d0abab8 100644
--- a/xts5/src/lib/XInput.c
+++ b/xts5/src/lib/XInput.c
@@ -190,7 +190,9 @@ Setup_Extension_DeviceInfo(dmask)
SavID = list->id;
if (list->use == IsXPointer)
SavPID = list->id;
- if (list->use != IsXExtensionDevice)
+ if (list->use != IsXExtensionDevice &&
+ list->use != IsXExtensionPointer &&
+ list->use != IsXExtensionKeyboard)
continue;
dev = XOpenDevice (dpy2, list->id);
nokeys = True;
--
1.7.7.4
More information about the xorg-devel
mailing list