diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-07-18 11:06:37 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-07-21 20:20:49 +1000 |
commit | 9720c16eccec922630cde4ebf20490a688b33f35 (patch) | |
tree | 424c182faf810b465a8c8eaf5111780f030d11ed | |
parent | b64fb73ace5a01576670571200f14cf1275a6bd7 (diff) | |
download | libinput-9720c16eccec922630cde4ebf20490a688b33f35.tar.gz |
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>
-rw-r--r-- | src/evdev-mt-touchpad.c | 5 |
1 files 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); |