summaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-11 16:14:22 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-11 16:14:22 +0200
commit33996500763b04119a6867dfa4040a4236c21a41 (patch)
tree7abc832f02c0478dd9b8e339c3ee7874d1bb7787 /cmd.c
parentnew stuff (diff)
downloaddwm-33996500763b04119a6867dfa4040a4236c21a41.tar.gz
dwm-33996500763b04119a6867dfa4040a4236c21a41.zip
added protocol killing stuff
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmd.c b/cmd.c
index 8244540..9ac4e72 100644
--- a/cmd.c
+++ b/cmd.c
@@ -18,3 +18,17 @@ quit(char *arg)
18 fputs("quit\n", stderr); 18 fputs("quit\n", stderr);
19 running = False; 19 running = False;
20} 20}
21
22void
23kill(char *arg)
24{
25 Client *c = stack;
26
27 if(!c)
28 return;
29 if(c->proto & WM_PROTOCOL_DELWIN)
30 send_message(c->win, wm_atom[WMProtocols], wm_atom[WMDelete]);
31 else
32 XKillClient(dpy, c->win);
33}
34