aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-03-10 01:39:48 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-03-10 17:07:56 +0200
commitb4d831ab278cb3349daea083b7260b5defbd34ec (patch)
tree01edf748bebede76f0ed04c4418547194d943709 /monsterwm.c
parent1185438f1ccc4b2a8bcb588a349719975196647b (diff)
fix misbehaving clients
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 8575753..52f4ceb 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -296,6 +296,7 @@ void configurerequest(XEvent *e) {
ev->y, ev->width, ev->height, ev->border_width, ev->above, ev->detail});
XSync(dis, False);
} else setfullscreen(c, True);
+ tile();
}
/* close the window */
@@ -683,8 +684,7 @@ void setfullscreen(client *c, Bool fullscrn) {
netatoms[NET_WM_STATE], XA_ATOM, 32, PropModeReplace, (unsigned char*)
((c->isfullscrn = fullscrn) ? &netatoms[NET_FULLSCREEN]:0), fullscrn);
if (c->isfullscrn) XMoveResizeWindow(dis, c->win, 0, 0, ww, wh + PANEL_HEIGHT);
- tile();
- if (c && c == current) update_current(c);
+ update_current(c);
}
/* set initial values