From 899218e18120918138f6d7420465763422d5b3b7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 9 Aug 2010 13:01:11 +1000 Subject: Don't count BTN_TOUCH as tool. (#29428) 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. X.Org Bug 29428 Signed-off-by: Peter Hutterer --- src/evdev.c | 1 - 1 file changed, 1 deletion(-) 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 -- cgit v1.2.3