projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1a9b24
)
touchpad: Only move the pointer when there's a single finger down
author
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 14 Feb 2014 05:48:49 +0000
(15:48 +1000)
committer
Peter 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
patch
|
blob
|
history
diff --git
a/src/evdev-mt-touchpad.c
b/src/evdev-mt-touchpad.c
index
14fb7f3
..
c4c4c41
100644
(file)
--- 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);