[PATCH evdev] Don't count BTN_TOUCH as tool.
Peter Hutterer
peter.hutterer at who-t.net
Mon Aug 9 18:44:21 PDT 2010
Devices that don't have a tool but BTN_TOUCH simply have the tool always on.
Devices that have a tool other than BTN_TOUCH set this tool before BTN_TOUCH
is emitted anyway.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
There seem to be at least two touchscreens that don't work with current
evdev for this reason.
src/evdev.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/src/evdev.c b/src/evdev.c
index cd0fb6c..5ea230c 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -577,7 +577,6 @@ EvdevProcessKeyEvent(InputInfoPtr pInfo, struct input_event *ev)
break;
case BTN_TOUCH:
- pEvdev->tool = value ? ev->code : 0;
if (!(pEvdev->flags & (EVDEV_TOUCHSCREEN | EVDEV_TABLET)))
break;
/* Treat BTN_TOUCH from devices that only have BTN_TOUCH as
--
1.7.2
More information about the xorg-devel
mailing list