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:
6fa0c9a
)
touchpad: tp_current_touch: Fix off by one error
author
Hans de Goede
<hdegoede@redhat.com>
Wed, 18 Jun 2014 12:22:24 +0000
(14:22 +0200)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 19 Jun 2014 00:09:03 +0000
(10:09 +1000)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
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 0294eb2bb95da446b53305b91a428eea72a9f226..92e0651a5fd59d749c45ac2335a8bbc34bcf3f5b 100644
(file)
--- a/
src/evdev-mt-touchpad.c
+++ b/
src/evdev-mt-touchpad.c
@@
-139,7
+139,7
@@
tp_motion_history_reset(struct tp_touch *t)
static inline struct tp_touch *
tp_current_touch(struct tp_dispatch *tp)
{
- return &tp->touches[min(tp->slot, tp->ntouches)];
+ return &tp->touches[min(tp->slot, tp->ntouches
- 1
)];
}
static inline struct tp_touch *