diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-09-02 18:47:01 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-09-02 18:47:01 +0100 |
commit | 753e0e048e13fe7cbace7c07917d26081a483eba (patch) | |
tree | 255308ec68819aecb300fc51d3bac0731b44a6f1 /dwm.c | |
parent | d15d4ba45abe06f5ac069e384bd7b46b55c0d286 (diff) | |
download | dwm-753e0e048e13fe7cbace7c07917d26081a483eba.tar.gz dwm-753e0e048e13fe7cbace7c07917d26081a483eba.tar.bz2 dwm-753e0e048e13fe7cbace7c07917d26081a483eba.zip |
applied Gottox' grabkey patch
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } } } |