summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--conf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index a3026cf..246b4b0 100644
--- a/conf.c
+++ b/conf.c
@@ -669,6 +669,8 @@ conf_grab_kbd(Window win)
 
 	TAILQ_FOREACH(kb, &Conf.keybindq, entry) {
 		kc = XKeysymToKeycode(X_Dpy, kb->press.keysym);
+		if (kc == 0)
+			continue;
 		if ((XkbKeycodeToKeysym(X_Dpy, kc, 0, 0) != kb->press.keysym) &&
 		    (XkbKeycodeToKeysym(X_Dpy, kc, 0, 1) == kb->press.keysym))
 			kb->modmask |= ShiftMask;