mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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:
parent
d46f34f01e
commit
055b84f4d4
2
conf.c
2
conf.c
@ -669,6 +669,8 @@ conf_grab_kbd(Window win)
|
|||||||
|
|
||||||
TAILQ_FOREACH(kb, &Conf.keybindq, entry) {
|
TAILQ_FOREACH(kb, &Conf.keybindq, entry) {
|
||||||
kc = XKeysymToKeycode(X_Dpy, kb->press.keysym);
|
kc = XKeysymToKeycode(X_Dpy, kb->press.keysym);
|
||||||
|
if (kc == 0)
|
||||||
|
continue;
|
||||||
if ((XkbKeycodeToKeysym(X_Dpy, kc, 0, 0) != kb->press.keysym) &&
|
if ((XkbKeycodeToKeysym(X_Dpy, kc, 0, 0) != kb->press.keysym) &&
|
||||||
(XkbKeycodeToKeysym(X_Dpy, kc, 0, 1) == kb->press.keysym))
|
(XkbKeycodeToKeysym(X_Dpy, kc, 0, 1) == kb->press.keysym))
|
||||||
kb->modmask |= ShiftMask;
|
kb->modmask |= ShiftMask;
|
||||||
|
Loading…
Reference in New Issue
Block a user