fix some weird conditions with fullscreen/max/arrange

This commit is contained in:
Julien Danjou 2008-01-06 23:27:47 +01:00
parent 9fa01e34de
commit 29a5cda54f
2 changed files with 4 additions and 1 deletions

1
ewmh.c
View File

@ -268,6 +268,7 @@ ewmh_process_state_atom(Client *c, Atom state, int set)
statusbar_draw_all(c->screen); statusbar_draw_all(c->screen);
client_resize(c, geometry, False); client_resize(c, geometry, False);
XRaiseWindow(globalconf.display, c->win); XRaiseWindow(globalconf.display, c->win);
arrange(c->screen);
} }
} }

4
tag.c
View File

@ -224,7 +224,9 @@ uicb_client_togglefloating(int screen, char *arg __attribute__((unused)))
return; return;
if((sel->isfloating = !sel->isfloating)) 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); client_saveprops(sel);
arrange(screen); arrange(screen);