[PATCH (v5) evdev 4/4] Ensure touchpad events are always processed with MT

Daniel Stone daniel at fooishbar.org
Wed Jan 19 15:11:57 PST 2011


From: Chase Douglas <chase.douglas at canonical.com>

Without this change, an MT touchpad in relative mode could end a touch
while not resetting the oldMask used to calculate relative values. This
fix allows a Magic Trackpad to behave as a relative mode device again.

Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
---

v5: No changes other than fixing conflicts.

 src/evdev.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/evdev.c b/src/evdev.c
index fd810c8..4a9375b 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -714,8 +714,9 @@ EvdevProcessAbsoluteMotionEvent(InputInfoPtr pInfo, struct input_event *ev)
     else {
         map = pEvdev->axis_map[ev->code];
         valuator_mask_set(pEvdev->mask, map, value);
-        pEvdev->abs_queued = 1;
     }
+
+    pEvdev->abs_queued = 1;
 }
 
 /**
-- 
1.7.2.3



More information about the xorg-devel mailing list