about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-07 13:40:31 +0200
committerarg@10ksloc.org <unknown>2006-08-07 13:40:31 +0200
commite48de30516d5a0400b27a0d6bfeb1b9181e8ebf5 (patch)
tree025cd1836fcebb754c5bf63eeaeff374991caa27
parent1f0060caa36d969deab2643b829529ea943c4714 (diff)
downloaddwm-e48de30516d5a0400b27a0d6bfeb1b9181e8ebf5.tar.gz
applied grabbing-- and shell_minimal
-rw-r--r--event.c8
-rw-r--r--util.c2
2 files changed, 1 insertions, 9 deletions
diff --git a/event.c b/event.c
index 69a628e..2e4f62e 100644
--- a/event.c
+++ b/event.c
@@ -359,20 +359,12 @@ grabkeys()
 
 	for(i = 0; i < len; i++) {
 		code = XKeysymToKeycode(dpy, key[i].keysym);
-		/* normal */
-		XUngrabKey(dpy, code, key[i].mod, root);
 		XGrabKey(dpy, code, key[i].mod, root, True,
 				GrabModeAsync, GrabModeAsync);
-		/* capslock */
-		XUngrabKey(dpy, code, key[i].mod | LockMask, root);
 		XGrabKey(dpy, code, key[i].mod | LockMask, root, True,
 				GrabModeAsync, GrabModeAsync);
-		/* numlock */
-		XUngrabKey(dpy, code, key[i].mod | NUMLOCKMASK, root);
 		XGrabKey(dpy, code, key[i].mod | NUMLOCKMASK, root, True,
 				GrabModeAsync, GrabModeAsync);
-		/* capslock & numlock */
-		XUngrabKey(dpy, code, key[i].mod | NUMLOCKMASK | LockMask, root);
 		XGrabKey(dpy, code, key[i].mod | NUMLOCKMASK | LockMask, root, True,
 				GrabModeAsync, GrabModeAsync);
 	}
diff --git a/util.c b/util.c
index 990ad28..4cc748f 100644
--- a/util.c
+++ b/util.c
@@ -56,7 +56,7 @@ spawn(Arg *arg)
 				close(ConnectionNumber(dpy));
 			setsid();
 			execl(shell, shell, "-c", arg->cmd, NULL);
-			fprintf(stderr, "dwm: execl '%s'", arg->cmd);
+			fprintf(stderr, "dwm: execl '%s -c %s'", shell, arg->cmd);
 			perror(" failed");
 		}
 		exit(0);