From: Hans de Goede Date: Fri, 18 Jul 2014 09:06:37 +0000 (+0200) Subject: touchpad: Don't process fake touches if they are not dirty X-Git-Tag: 0.5.0~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9720c16eccec922630cde4ebf20490a688b33f35;p=platform%2Fupstream%2Flibinput.git 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 --- 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);