aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monsterwm.c b/monsterwm.c
index ba56bf1..69db075 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -480,8 +480,8 @@ void killclient(void) {
Atom *prot; int n = -1;
if (XGetWMProtocols(dis, d->curr->win, &prot, &n))
while(--n >= 0 && prot[n] != wmatoms[WM_DELETE_WINDOW]);
- if (n < 0) XKillClient(dis, d->curr->win); else deletewindow(d->curr->win);
- removeclient(d->curr, d);
+ if (n < 0) { XKillClient(dis, d->curr->win); removeclient(d->curr, d); }
+ else deletewindow(d->curr->win);
}
/* a map request is received when a window wants to display itself