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 <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Hans de Goede 2014-07-18 11:06:37 +02:00 committed by Peter Hutterer
parent b64fb73ace
commit 9720c16ecc

View file

@ -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);