summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/evdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 519fd6a..04bce96 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -2002,6 +2002,9 @@ EvdevInitProperty(DeviceIntPtr dev)
int group = (button % 0x100)/16;
int idx = button - ((button/16) * 16);
+ if (!btn_labels[group][idx])
+ continue;
+
atom = XIGetKnownProperty(btn_labels[group][idx]);
if (!atom)
continue;