added protocol killing stuff

This commit is contained in:
Anselm R. Garbe
2006-07-11 16:14:22 +02:00
parent 272e15c4b7
commit 3399650076
6 changed files with 153 additions and 36 deletions

14
cmd.c
View File

@ -18,3 +18,17 @@ 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);
}