From 29a5cda54f31d5201ac394dc005a1fdb38178ac5 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 6 Jan 2008 23:27:47 +0100 Subject: [PATCH] fix some weird conditions with fullscreen/max/arrange --- ewmh.c | 1 + tag.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ewmh.c b/ewmh.c index fabfaf5c9..6e86cf06a 100644 --- a/ewmh.c +++ b/ewmh.c @@ -268,6 +268,7 @@ ewmh_process_state_atom(Client *c, Atom state, int set) statusbar_draw_all(c->screen); client_resize(c, geometry, False); XRaiseWindow(globalconf.display, c->win); + arrange(c->screen); } } diff --git a/tag.c b/tag.c index c5dde1ede..ba885bf86 100644 --- a/tag.c +++ b/tag.c @@ -224,7 +224,9 @@ uicb_client_togglefloating(int screen, char *arg __attribute__((unused))) return; if((sel->isfloating = !sel->isfloating)) - client_resize(sel, sel->f_geometry, True); + client_resize(sel, sel->f_geometry, False); + else if(sel->ismax) + client_resize(sel, sel->m_geometry, False); client_saveprops(sel); arrange(screen);