touchpad: Only move the pointer when there's a single finger down
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 14 Feb 2014 05:48:49 +0000 (15:48 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 24 Mar 2014 04:56:41 +0000 (14:56 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad.c

index 14fb7f3..c4c4c41 100644 (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);