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:
f2d110d
)
evdev: avoid usage of bogus BTN_FORWARD name
author
Eduardo de Souza Cruz
<eduardo.cruz@kdemail.net>
Mon, 11 Oct 2021 20:29:12 +0000
(17:29 -0300)
committer
Eduardo de Souza Cruz
<eduardo.cruz@kdemail.net>
Mon, 11 Oct 2021 20:43:26 +0000
(17:43 -0300)
Signed-off-by: Eduardo Cruz <eduardo.cruz@kdemail.net>
src/evdev.c
patch
|
blob
|
history
diff --git
a/src/evdev.c
b/src/evdev.c
index
7ab998b
..
d8dfdad
100644
(file)
--- a/
src/evdev.c
+++ b/
src/evdev.c
@@
-230,7
+230,7
@@
evdev_button_scroll_button(struct evdev_device *device,
}
if (is_press) {
- if (device->scroll.button < BTN_
FORWARD
) {
+ if (device->scroll.button < BTN_
MOUSE + 5
) {
/* For mouse buttons 1-5 (0x110 to 0x114) we apply a timeout before scrolling
* since the button could also be used for regular clicking. */
enum timer_flags flags = TIMER_FLAG_NONE;