[floating] Do not lower windows when going back to tiled
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
680555a317
commit
2456f6d62a
6
client.c
6
client.c
|
@ -576,15 +576,11 @@ client_setfloating(Client *c, Bool floating)
|
||||||
client_resize(c, c->f_geometry, False);
|
client_resize(c, c->f_geometry, False);
|
||||||
XRaiseWindow(globalconf.display, c->win);
|
XRaiseWindow(globalconf.display, c->win);
|
||||||
}
|
}
|
||||||
else
|
else if(c->ismax)
|
||||||
{
|
|
||||||
XLowerWindow(globalconf.display, c->win);
|
|
||||||
if(c->ismax)
|
|
||||||
{
|
{
|
||||||
c->ismax = False;
|
c->ismax = False;
|
||||||
client_resize(c, c->m_geometry, False);
|
client_resize(c, c->m_geometry, False);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if(client_isvisible(c, c->screen))
|
if(client_isvisible(c, c->screen))
|
||||||
globalconf.screens[c->screen].need_arrange = True;
|
globalconf.screens[c->screen].need_arrange = True;
|
||||||
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
|
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
|
||||||
|
|
Loading…
Reference in New Issue