dwm-meillo

annotate cmd.c @ 19:b5510d0c6d43

added basic mouse support (actually we don't need more)
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 21:41:49 +0200
parents 5cc5e55a132d
children 95ffdfd0a819
rev   line source
garbeam@12 1 /*
garbeam@12 2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
garbeam@12 3 * See LICENSE file for license details.
garbeam@12 4 */
garbeam@12 5
garbeam@12 6 #include "wm.h"
garbeam@12 7 #include <stdio.h>
garbeam@14 8 #include <string.h>
garbeam@12 9
garbeam@12 10 void
garbeam@14 11 run(void *aux)
garbeam@12 12 {
garbeam@14 13 spawn(dpy, aux);
garbeam@12 14 }
garbeam@12 15
garbeam@12 16 void
garbeam@14 17 quit(void *aux)
garbeam@12 18 {
garbeam@12 19 running = False;
garbeam@12 20 }
garbeam@13 21
garbeam@13 22 void
garbeam@14 23 kill(void *aux)
garbeam@13 24 {
garbeam@13 25 Client *c = stack;
garbeam@13 26
garbeam@13 27 if(!c)
garbeam@13 28 return;
garbeam@13 29 if(c->proto & WM_PROTOCOL_DELWIN)
garbeam@13 30 send_message(c->win, wm_atom[WMProtocols], wm_atom[WMDelete]);
garbeam@13 31 else
garbeam@13 32 XKillClient(dpy, c->win);
garbeam@13 33 }
garbeam@13 34