cmd.c
author Anselm R. Garbe <garbeam@wmii.de>
Tue, 11 Jul 2006 18:15:11 +0200
changeset 14 5c078b66347b
parent 13 5cc5e55a132d
child 23 95ffdfd0a819
permissions -rw-r--r--
added bar event timer

/*
 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
 * See LICENSE file for license details.
 */

#include "wm.h"
#include <stdio.h>
#include <string.h>

void
run(void *aux)
{
	spawn(dpy, aux);
}

void
quit(void *aux)
{
	running = False;
}

void
kill(void *aux)
{
	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);
}