client: fix client_setborder

- Don't know why I didn't do this correctly in the first place :-|

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Maarten Maathuis 2009-02-19 19:16:59 +01:00 committed by Julien Danjou
parent f711503d7b
commit c675bf64ec
1 changed files with 4 additions and 4 deletions

View File

@ -1261,15 +1261,15 @@ client_setborder(client_t *c, int width)
return;
/* Update geometry with the new border. */
c->geometry.width -= c->border;
c->geometry.height -= c->border;
c->geometry.width -= 2 * c->border;
c->geometry.height -= 2 * c->border;
c->border = width;
xcb_configure_window(globalconf.connection, c->win,
XCB_CONFIG_WINDOW_BORDER_WIDTH, &w);
c->geometry.width += c->border;
c->geometry.height += c->border;
c->geometry.width += 2 * c->border;
c->geometry.height += 2 * c->border;
/* Tiled clients will be resized by the layout functions. */
client_need_arrange(c);