client: update titlebar geometry on border width change

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-07-30 10:04:03 +02:00
parent acfd1c06df
commit 4ef2cdffc9
1 changed files with 5 additions and 1 deletions

View File

@ -933,7 +933,11 @@ client_setborder(client_t *c, int width)
c->border = width; c->border = width;
xcb_configure_window(globalconf.connection, c->win, xcb_configure_window(globalconf.connection, c->win,
XCB_CONFIG_WINDOW_BORDER_WIDTH, &w); XCB_CONFIG_WINDOW_BORDER_WIDTH, &w);
globalconf.screens[c->screen].need_arrange = true;
if(!c->isfloating && layout_get_current(c->screen) != layout_floating)
globalconf.screens[c->screen].need_arrange = true;
else
titlebar_update_geometry_floating(c);
} }
/** Tag a client with a specified tag. /** Tag a client with a specified tag.