#include "wm.h"
#include <stdio.h>
+#include <string.h>
void
-run(char *arg)
+run(void *aux)
{
- spawn(dpy, arg);
+ spawn(dpy, aux);
}
void
-quit(char *arg)
+quit(void *aux)
{
- fputs("quit\n", stderr);
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);
+}
+