[PATCH libinput 4/5] touchpad: explicitly init scroll settings
Peter Hutterer
peter.hutterer at who-t.net
Sun Nov 9 18:33:32 PST 2014
No effect, we're just initializing with the same value we did before. What is
important here is the comment, the touchpad scroll threshold is in mm
for touchpads providing a resolution.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/evdev-mt-touchpad.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 3d8f414..bbad713 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -956,6 +956,9 @@ tp_init_scroll(struct tp_dispatch *tp)
tp->scroll.natural_scrolling_enabled = false;
tp->device->base.config.natural_scroll = &tp->scroll.config;
+ /* In mm for touchpads with valid resolution, see tp_init_accel() */
+ tp->device->scroll.threshold = 5.0;
+
return 0;
}
--
2.1.0
More information about the wayland-devel
mailing list