From 33996500763b04119a6867dfa4040a4236c21a41 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Tue, 11 Jul 2006 16:14:22 +0200 Subject: added protocol killing stuff --- cmd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cmd.c') diff --git a/cmd.c b/cmd.c index 82445407..9ac4e729 100644 --- a/cmd.c +++ b/cmd.c @@ -18,3 +18,17 @@ quit(char *arg) fputs("quit\n", stderr); running = False; } + +void +kill(char *arg) +{ + 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); +} + -- cgit v1.2.3