client: reset height and width on unbanning

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-01-30 15:07:49 +01:00
parent 9e89753018
commit b878e1491f
1 changed files with 8 additions and 2 deletions

View File

@ -1052,10 +1052,16 @@ client_unban(client_t *c)
if(c->isbanned) if(c->isbanned)
{ {
/* Move the client back where it belongs. */ /* Move the client back where it belongs. */
uint32_t request[2] = { c->geometries.internal.x, c->geometries.internal.y }; uint32_t request[] = { c->geometries.internal.x,
c->geometries.internal.y,
c->geometries.internal.width,
c->geometries.internal.height };
xcb_configure_window(globalconf.connection, c->win, xcb_configure_window(globalconf.connection, c->win,
XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y, XCB_CONFIG_WINDOW_X
| XCB_CONFIG_WINDOW_Y
| XCB_CONFIG_WINDOW_WIDTH
| XCB_CONFIG_WINDOW_HEIGHT,
request); request);
window_configure(c->win, c->geometries.internal, c->border); window_configure(c->win, c->geometries.internal, c->border);