dwm-meillo

changeset 217:7b63c375d28c

applied grabbing-- and shell_minimal
author arg@10ksloc.org
date Mon, 07 Aug 2006 13:40:31 +0200
parents 721d5e5de25d
children c674a0baac63
files event.c util.c
diffstat 2 files changed, 1 insertions(+), 9 deletions(-) [+]
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  	}
     2.1 --- a/util.c	Mon Aug 07 12:26:28 2006 +0200
     2.2 +++ b/util.c	Mon Aug 07 13:40:31 2006 +0200
     2.3 @@ -56,7 +56,7 @@
     2.4  				close(ConnectionNumber(dpy));
     2.5  			setsid();
     2.6  			execl(shell, shell, "-c", arg->cmd, NULL);
     2.7 -			fprintf(stderr, "dwm: execl '%s'", arg->cmd);
     2.8 +			fprintf(stderr, "dwm: execl '%s -c %s'", shell, arg->cmd);
     2.9  			perror(" failed");
    2.10  		}
    2.11  		exit(0);