--- a/event.c Mon Aug 07 12:26:28 2006 +0200
+++ b/event.c Mon Aug 07 13:40:31 2006 +0200
@@ -359,20 +359,12 @@
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);
}
--- a/util.c Mon Aug 07 12:26:28 2006 +0200
+++ b/util.c Mon Aug 07 13:40:31 2006 +0200
@@ -56,7 +56,7 @@
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);