evdev: avoid usage of bogus BTN_FORWARD name
authorEduardo de Souza Cruz <eduardo.cruz@kdemail.net>
Mon, 11 Oct 2021 20:29:12 +0000 (17:29 -0300)
committerEduardo 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

index 7ab998b..d8dfdad 100644 (file)
@@ -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;