fix maximization on floating layouts

This commit is contained in:
Julien Danjou 2008-01-11 16:38:41 +01:00
parent 542df6a3ab
commit 7c93dd381e

View file

@ -884,6 +884,7 @@ client_maximize(Client *c, Area geometry)
{
c->wasfloating = c->isfloating;
c->m_geometry = c->geometry;
c->isfloating = False;
client_resize(c, geometry, False);
/* set floating after resizing so it won't save
* coords */
@ -898,6 +899,12 @@ client_maximize(Client *c, Area geometry)
restack(c->screen);
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
}
else if(get_current_layout(c->screen)->arrange == layout_floating)
{
client_resize(c, c->m_geometry, False);
restack(c->screen);
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
}
else
{
c->isfloating = False;