Bugfix: Resize client after updating base_height/base_width (Thanks Merovius)

This fixes the problem that urxvt/xterm "lost" a line of space before
being resized the first time.
This commit is contained in:
Michael Stapelberg
2009-11-23 09:42:38 +01:00
parent d2a88f7089
commit 5329ed0158
2 changed files with 11 additions and 6 deletions

View File

@ -889,8 +889,13 @@ int handle_normal_hints(void *data, xcb_connection_t *conn, uint8_t state, xcb_w
base_height = size_hints.min_height;
}
client->base_width = base_width;
client->base_height = base_height;
if (base_width != client->base_width ||
base_height != client->base_height) {
client->base_width = base_width;
client->base_height = base_height;
LOG("client's base_height changed to %d\n", base_height);
resize_client(conn, client);
}
/* If no aspect ratio was set or if it was invalid, we ignore the hints */
if (!(size_hints.flags & XCB_SIZE_HINT_P_ASPECT) ||