[PATCH libinput 07/12] evdev: rename define for button scroll timeout

Peter Hutterer peter.hutterer at who-t.net
Mon Feb 20 20:53:34 UTC 2017


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 at who-t.net>
---
 src/evdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/evdev.c b/src/evdev.c
index b1d2db2..1af29a4 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -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 {
-- 
2.9.3



More information about the wayland-devel mailing list