touchpad: Only move the pointer when there's a single finger down

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2014-02-14 15:48:49 +10:00
parent c1a9b24a0a
commit 8ea5cb75c1

View file

@ -416,7 +416,8 @@ tp_post_events(struct tp_dispatch *tp, uint32_t time)
if (tp_post_scroll_events(tp, time) != 0)
return;
if (t->history.count >= TOUCHPAD_MIN_SAMPLES) {
if (t->history.count >= TOUCHPAD_MIN_SAMPLES &&
tp->nfingers_down == 1) {
tp_get_delta(t, &dx, &dy);
tp_filter_motion(tp, &dx, &dy, time);