aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Jay <dinkumator@gmail.com>2009-03-16 08:36:53 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-03-16 08:43:16 +1000
commita3ea979c2b70d166d62422b4ba450ce2910389c3 (patch)
treef7668dcea234ef3af37dda0e27ce0b147ec83c04
parentRestore repeat-filtering for server 1.5 and earlier. (diff)
downloadxf86-input-evdev-a3ea979c2b70d166d62422b4ba450ce2910389c3.tar.gz
xf86-input-evdev-a3ea979c2b70d166d62422b4ba450ce2910389c3.tar.bz2
xf86-input-evdev-a3ea979c2b70d166d62422b4ba450ce2910389c3.zip
Set "rel" when converting absolute touchpad coordinates to relative (#20661)
We unset "abs" and convert to relative, but never set "rel" so the events don't get posted. This bit got broken in 43dd2a959243877. X.Org Bug 20661 <http://bugs.freedesktop.org/show_bug.cgi?id=20661> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c
index bc29ac9..fd4ad2d 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -444,6 +444,7 @@ EvdevProcessEvent(InputInfoPtr pInfo, struct input_event *ev)
/* convert to relative motion for touchpads */
if (abs && (pEvdev->flags & EVDEV_TOUCHPAD)) {
abs = 0;
+ rel = 1;
if (pEvdev->tool) { /* meaning, touch is active */
if (pEvdev->old_vals[0] != -1)
delta[REL_X] = pEvdev->vals[0] - pEvdev->old_vals[0];