applied Gottox' grabkey patch
Anselm R Garbe garbeam@gmail.com
Tue, 02 Sep 2008 18:47:01 +0100
1 files changed,
4 insertions(+),
4 deletions(-)
jump to
M
dwm.c
→
dwm.c
@@ -763,10 +763,10 @@ KeyCode code;
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); } } }