client: Make sure the titlebar is visible.
Signed-off-by: Maarten Maathuis <madman2003@gmail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a9ed61589f
commit
bfcd5b14a2
2
client.c
2
client.c
|
@ -560,7 +560,7 @@ client_resize(client_t *c, area_t geometry, bool hints)
|
||||||
area_t area;
|
area_t area;
|
||||||
layout_t *layout = layout_get_current(c->screen);
|
layout_t *layout = layout_get_current(c->screen);
|
||||||
|
|
||||||
if(c->titlebar && !c->ismoving && !client_isfloating(c) && layout != layout_floating)
|
if(c->titlebar && !c->ismoving && c->titlebar->isvisible && !client_isfloating(c) && layout != layout_floating)
|
||||||
geometry = titlebar_geometry_remove(c->titlebar, c->border, geometry);
|
geometry = titlebar_geometry_remove(c->titlebar, c->border, geometry);
|
||||||
|
|
||||||
if(hints)
|
if(hints)
|
||||||
|
|
Loading…
Reference in New Issue