[PATCH libinput 5/9] evdev: don't try to fix abs devices without x/y
Peter Hutterer
peter.hutterer at who-t.net
Mon Mar 16 22:34:29 PDT 2015
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/evdev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/evdev.c b/src/evdev.c
index 3481b45..570c436 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1490,7 +1490,8 @@ evdev_configure_device(struct evdev_device *device)
return -1;
}
- if (libevdev_has_event_type(evdev, EV_ABS)) {
+ if (libevdev_has_event_code(evdev, EV_ABS, ABS_X) ||
+ libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_X)) {
evdev_fix_android_mt(device);
if ((absinfo = libevdev_get_abs_info(evdev, ABS_X))) {
--
2.3.2
More information about the wayland-devel
mailing list