[PATCH 1/2] libinput: evdev.c: use correct fallback value for KEY_LIGHTS_TOGGLE

Peter Korsgaard peter at korsgaard.com
Mon Jun 2 14:11:30 PDT 2014


The kernel defines KEY_LIGHTS_TOGGLE as 0x21e, not 0x160 (which is KEY_OK).

Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 src/evdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/evdev.c b/src/evdev.c
index ed5749e..3053764 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -42,7 +42,7 @@
 #define DEFAULT_AXIS_STEP_DISTANCE li_fixed_from_int(10)
 
 #ifndef KEY_LIGHTS_TOGGLE
-#define KEY_LIGHTS_TOGGLE 0x160
+#define KEY_LIGHTS_TOGGLE 0x21e
 #endif
 
 void
-- 
2.0.0.rc2



More information about the wayland-devel mailing list