From 8ea5cb75c1b786e904c341c8963202eac02c8e93 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 14 Feb 2014 15:48:49 +1000 Subject: [PATCH] touchpad: Only move the pointer when there's a single finger down Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 14fb7f3f..c4c4c41d 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -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);