Bugfix: Don’t resize client after base_height changes if client is in fullscreen mode

This commit is contained in:
Michael Stapelberg 2009-12-08 20:52:19 +01:00
parent befd7f6f22
commit ddf3119552
1 changed files with 4 additions and 1 deletions

View File

@ -894,7 +894,10 @@ int handle_normal_hints(void *data, xcb_connection_t *conn, uint8_t state, xcb_w
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 (client->fullscreen)
LOG("Not resizing client, it is in fullscreen mode\n");
else
resize_client(conn, client);
}
/* If no aspect ratio was set or if it was invalid, we ignore the hints */