aewl

view cmd.c @ 20:4560e0882c1d

made code more readable
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 22:49:09 +0200
parents 5cc5e55a132d
children 95ffdfd0a819
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>
8 #include <string.h>
10 void
11 run(void *aux)
12 {
13 spawn(dpy, aux);
14 }
16 void
17 quit(void *aux)
18 {
19 running = False;
20 }
22 void
23 kill(void *aux)
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 }