evdev: rename define for button scroll timeout
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 20 Feb 2017 02:56:06 +0000 (12:56 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 20 Feb 2017 03:10:20 +0000 (13:10 +1000)
This is merely 'button scrolling' now, only the original implementation was
middle button only. And to avoid confusing with the middle button emulation,
drop "MIDDLE" from the define.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev.c

index b1d2db2..1af29a4 100644 (file)
@@ -48,7 +48,7 @@
 #endif
 
 #define DEFAULT_WHEEL_CLICK_ANGLE 15
-#define DEFAULT_MIDDLE_BUTTON_SCROLL_TIMEOUT ms2us(200)
+#define DEFAULT_BUTTON_SCROLL_TIMEOUT ms2us(200)
 
 enum evdev_key_type {
        EVDEV_KEY_TYPE_NONE,
@@ -247,7 +247,7 @@ evdev_button_scroll_button(struct evdev_device *device,
                }
 
                libinput_timer_set_flags(&device->scroll.timer,
-                                        time + DEFAULT_MIDDLE_BUTTON_SCROLL_TIMEOUT,
+                                        time + DEFAULT_BUTTON_SCROLL_TIMEOUT,
                                         flags);
                device->scroll.button_down_time = time;
        } else {