Skip to content

Commit

Permalink
applied Gottox' grabkey patch
Browse files Browse the repository at this point in the history
  • Loading branch information
garbeam committed Sep 2, 2008
1 parent d15d4ba commit 753e0e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 753e0e0

Please sign in to comment.