dwm-meillo

view 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 source
1 /*
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
4 */
6 #include "wm.h"
7 #include <stdio.h>
9 void
10 run(char *arg)
11 {
12 spawn(dpy, arg);
13 }
15 void
16 quit(char *arg)
17 {
18 fputs("quit\n", stderr);
19 running = False;
20 }
22 void
23 kill(char *arg)
24 {
25 Client *c = stack;
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 }