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:
Maarten Maathuis 2008-11-17 18:47:22 +01:00 committed by Julien Danjou
parent a9ed61589f
commit bfcd5b14a2
1 changed files with 1 additions and 1 deletions

View File

@ -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)