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:
d98e474
)
touchpad: don't calculate movement for an already-moved touch
author
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 4 Oct 2018 00:30:26 +0000
(10:30 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 4 Oct 2018 00:44:55 +0000
(10:44 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-buttons.c
patch
|
blob
|
history
diff --git
a/src/evdev-mt-touchpad-buttons.c
b/src/evdev-mt-touchpad-buttons.c
index 27a1580506757a7022704c1597ed7f3039122fbd..ae58c15422ea1a4ce04b1c1d09c90c2bb550298c 100644
(file)
--- a/
src/evdev-mt-touchpad-buttons.c
+++ b/
src/evdev-mt-touchpad-buttons.c
@@
-464,6
+464,9
@@
tp_button_check_for_movement(struct tp_dispatch *tp, struct tp_touch *t)
struct phys_coords mm;
double vector_length;
+ if (t->button.has_moved)
+ return;
+
switch (t->button.state) {
case BUTTON_STATE_NONE:
case BUTTON_STATE_AREA: