Do not attempt to grab keys without a keycode; this incidentally allows

XF86 keys support.

found and fix by Luis Henriques <henrix@camandro.org>
This commit is contained in:
okan 2021-11-19 19:13:14 +00:00
parent d46f34f01e
commit 055b84f4d4
1 changed files with 2 additions and 0 deletions

2
conf.c
View File

@ -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;