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 <[email protected]> --- 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 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
