From 0c987a929dd4c98d4a80d8b7f75286902eb572f2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 21 Dec 2010 10:45:11 +1000 Subject: Revert "Don't count BTN_TOUCH as tool. (#29428)" Synaptics devices send garbage between BTN_TOUCH and BTN_TOOL_FINGER. By switching to use this as proximity data now, the pointer is reset to the garbage data position (usually around 1/5855). This reverts commit 899218e18120918138f6d7420465763422d5b3b7. Reported-by: Dave Airlie Signed-off-by: Peter Hutterer Reviewed-by: Chris Bagwell --- src/evdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/evdev.c b/src/evdev.c index dbe167a..b6591ce 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -679,6 +679,7 @@ EvdevProcessKeyEvent(InputInfoPtr pInfo, struct input_event *ev) switch (ev->code) { case BTN_TOUCH: + pEvdev->in_proximity = 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