mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 18:10:28 +01:00
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:
parent
b64fb73ace
commit
9720c16ecc
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue