[PATCH libinput 13/19] touchpad: Only move the pointer when there's a single finger down

Peter Hutterer peter.hutterer at who-t.net
Sun Feb 16 22:48:32 PST 2014


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 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 14fb7f3..c4c4c41 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);
 
-- 
1.8.4.2



More information about the wayland-devel mailing list