applied Gottox' grabkey patch
This commit is contained in:
parent
d15d4ba45a
commit
753e0e048e
1 changed files with 4 additions and 4 deletions
8
dwm.c
8
dwm.c
|
@ -763,10 +763,10 @@ grabkeys(void) {
|
|||
|
||||
XUngrabKey(dpy, AnyKey, AnyModifier, root);
|
||||
for(i = 0; i < LENGTH(keys); i++) {
|
||||
code = XKeysymToKeycode(dpy, keys[i].keysym);
|
||||
for(j = 0; j < LENGTH(modifiers); j++)
|
||||
XGrabKey(dpy, code, keys[i].mod | modifiers[j], root, True,
|
||||
GrabModeAsync, GrabModeAsync);
|
||||
if((code = XKeysymToKeycode(dpy, keys[i].keysym)))
|
||||
for(j = 0; j < LENGTH(modifiers); j++)
|
||||
XGrabKey(dpy, code, keys[i].mod | modifiers[j], root,
|
||||
True, GrabModeAsync, GrabModeAsync);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue