[PATCH] xf86-input-libinput: Reapply configuration at DEVICE_ON

Friedrich Schöller code at schoeller.se
Fri Jan 23 17:20:22 PST 2015


The driver ignored my xorg configuration. Maybe I am doing something wrong, but I tried to track down the error and came up with this solution.

The device is closed after DEVICE_INIT so we need to apply configuration options at DEVICE_ON.

Signed-off-by: Friedrich Schöller <code at schoeller.se>
---
 src/libinput.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libinput.c b/src/libinput.c
index 52b385e..d78c769 100644
--- a/src/libinput.c
+++ b/src/libinput.c
@@ -326,6 +326,8 @@ xf86libinput_on(DeviceIntPtr dev)
 	driver_context.device_enabled_count++;
 	dev->public.on = TRUE;
 
+	LibinputApplyConfig(dev);
+
 	return Success;
 }
 
-- 
2.2.2



More information about the xorg-devel mailing list