diff options
author | okan <okan> | 2021-11-19 19:13:14 +0000 |
---|---|---|
committer | okan <okan> | 2021-11-19 19:13:14 +0000 |
commit | 055b84f4d47e05031ba03044dfa111d28e52a31d (patch) | |
tree | b9baa80930032e44dcb2e1447cece427b3ad379e | |
parent | d46f34f01eba56f989af90e277fc0c673ad3684f (diff) | |
download | cwm-055b84f4d47e05031ba03044dfa111d28e52a31d.tar.gz cwm-055b84f4d47e05031ba03044dfa111d28e52a31d.tar.xz cwm-055b84f4d47e05031ba03044dfa111d28e52a31d.zip |
Do not attempt to grab keys without a keycode; this incidentally allows
XF86 keys support. found and fix by Luis Henriques <henrix@camandro.org>
-rw-r--r-- | conf.c | 2 |
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; |