From 9720c16eccec922630cde4ebf20490a688b33f35 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 18 Jul 2014 11:06:37 +0200 Subject: [PATCH] touchpad: Don't process fake touches if they are not dirty Don't process fake touches, e.g. re-adding the same position to the motion history when they are not dirty. This could trigger for example on a button press. Signed-off-by: Hans de Goede Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 6466c1bd..efe24d1c 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -408,10 +408,11 @@ tp_process_state(struct tp_dispatch *tp, uint64_t time) t->y = first->y; if (!t->dirty) t->dirty = first->dirty; - } else if (!t->dirty) { - continue; } + if (!t->dirty) + continue; + tp_palm_detect(tp, t, time); tp_motion_hysteresis(tp, t); -- 2.34.1