aewl
diff cmd.c @ 13:5cc5e55a132d
added protocol killing stuff
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 11 Jul 2006 16:14:22 +0200 |
parents | a2b399582afe |
children | 5c078b66347b |
line diff
1.1 --- a/cmd.c Tue Jul 11 14:53:22 2006 +0200 1.2 +++ b/cmd.c Tue Jul 11 16:14:22 2006 +0200 1.3 @@ -18,3 +18,17 @@ 1.4 fputs("quit\n", stderr); 1.5 running = False; 1.6 } 1.7 + 1.8 +void 1.9 +kill(char *arg) 1.10 +{ 1.11 + Client *c = stack; 1.12 + 1.13 + if(!c) 1.14 + return; 1.15 + if(c->proto & WM_PROTOCOL_DELWIN) 1.16 + send_message(c->win, wm_atom[WMProtocols], wm_atom[WMDelete]); 1.17 + else 1.18 + XKillClient(dpy, c->win); 1.19 +} 1.20 +