Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed several other stuff, coming closer to something useful
[dwm.git]
/
cmd.c
diff --git
a/cmd.c
b/cmd.c
index
8244540
..
4f1c84b
100644
(file)
--- a/
cmd.c
+++ b/
cmd.c
@@
-5,16
+5,30
@@
#include "wm.h"
#include <stdio.h>
#include "wm.h"
#include <stdio.h>
+#include <string.h>
void
void
-run(char *arg)
+run(void *aux)
{
{
- spawn(dpy, arg);
+ spawn(dpy, aux);
}
void
}
void
-quit(char *arg)
+quit(void *aux)
{
{
- fputs("quit\n", stderr);
running = False;
}
running = False;
}
+
+void
+kill(void *aux)
+{
+ Client *c = stack;
+
+ if(!c)
+ return;
+ if(c->proto & WM_PROTOCOL_DELWIN)
+ send_message(c->win, wm_atom[WMProtocols], wm_atom[WMDelete]);
+ else
+ XKillClient(dpy, c->win);
+}
+