Mercurial > aewl
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 wrap: on
line source
/* * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> * See LICENSE file for license details. */ #include "wm.h" #include <stdio.h> void run(char *arg) { spawn(dpy, arg); } void quit(char *arg) { fputs("quit\n", stderr); running = False; } void kill(char *arg) { 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); }