diff options
Diffstat (limited to '')
| -rw-r--r-- | cmd.c | 14 |
1 files changed, 14 insertions, 0 deletions
| @@ -18,3 +18,17 @@ quit(char *arg) | |||
| 18 | fputs("quit\n", stderr); | 18 | fputs("quit\n", stderr); |
| 19 | running = False; | 19 | running = False; |
| 20 | } | 20 | } |
| 21 | |||
| 22 | void | ||
| 23 | kill(char *arg) | ||
| 24 | { | ||
| 25 | Client *c = stack; | ||
| 26 | |||
| 27 | if(!c) | ||
| 28 | return; | ||
| 29 | if(c->proto & WM_PROTOCOL_DELWIN) | ||
| 30 | send_message(c->win, wm_atom[WMProtocols], wm_atom[WMDelete]); | ||
| 31 | else | ||
| 32 | XKillClient(dpy, c->win); | ||
| 33 | } | ||
| 34 | |||
