[PATCH libinput 2/5] evdev: set the default speed after initializing ptraccel

Peter Hutterer peter.hutterer at who-t.net
Mon Feb 2 17:07:03 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=88899

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/evdev.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/evdev.c b/src/evdev.c
index 1b3bb90..b2b8cbf 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1229,6 +1229,9 @@ evdev_device_init_pointer_acceleration(struct evdev_device *device)
 	device->pointer.config.get_default_speed = evdev_accel_config_get_default_speed;
 	device->base.config.accel = &device->pointer.config;
 
+	evdev_accel_config_set_speed(&device->base,
+		     evdev_accel_config_get_default_speed(&device->base));
+
 	return 0;
 }
 
-- 
2.1.0



More information about the wayland-devel mailing list