aewl

diff event.c @ 217:7b63c375d28c

applied grabbing-- and shell_minimal
author arg@10ksloc.org
date Mon, 07 Aug 2006 13:40:31 +0200
parents d560e796f7fe
children f4f5d000ce7a
line diff
     1.1 --- a/event.c	Mon Aug 07 12:26:28 2006 +0200
     1.2 +++ b/event.c	Mon Aug 07 13:40:31 2006 +0200
     1.3 @@ -359,20 +359,12 @@
     1.4  
     1.5  	for(i = 0; i < len; i++) {
     1.6  		code = XKeysymToKeycode(dpy, key[i].keysym);
     1.7 -		/* normal */
     1.8 -		XUngrabKey(dpy, code, key[i].mod, root);
     1.9  		XGrabKey(dpy, code, key[i].mod, root, True,
    1.10  				GrabModeAsync, GrabModeAsync);
    1.11 -		/* capslock */
    1.12 -		XUngrabKey(dpy, code, key[i].mod | LockMask, root);
    1.13  		XGrabKey(dpy, code, key[i].mod | LockMask, root, True,
    1.14  				GrabModeAsync, GrabModeAsync);
    1.15 -		/* numlock */
    1.16 -		XUngrabKey(dpy, code, key[i].mod | NUMLOCKMASK, root);
    1.17  		XGrabKey(dpy, code, key[i].mod | NUMLOCKMASK, root, True,
    1.18  				GrabModeAsync, GrabModeAsync);
    1.19 -		/* capslock & numlock */
    1.20 -		XUngrabKey(dpy, code, key[i].mod | NUMLOCKMASK | LockMask, root);
    1.21  		XGrabKey(dpy, code, key[i].mod | NUMLOCKMASK | LockMask, root, True,
    1.22  				GrabModeAsync, GrabModeAsync);
    1.23  	}