Bugfix: Correctly switch border types for floating windows (Thanks msi)

This commit is contained in:
Michael Stapelberg 2009-11-13 19:55:34 +01:00
parent 2ee097cf92
commit d52f80f9b6
1 changed files with 8 additions and 3 deletions

View File

@ -297,11 +297,16 @@ void client_change_border(xcb_connection_t *conn, Client *client, char border_ty
/* Ensure that the childs position inside our window gets updated */ /* Ensure that the childs position inside our window gets updated */
client->force_reconfigure = true; client->force_reconfigure = true;
/* For clients inside a container, we can simply render the container. /* For clients inside a container, we can simply render the container */
* If the client is floating, we need to render the whole layout */
if (client->container != NULL) if (client->container != NULL)
render_container(conn, client->container); render_container(conn, client->container);
else {
/* If the client is floating, directly push its size */
if (client_is_floating(client))
resize_client(conn, client);
/* Otherwise, it may be a dock client, thus render the whole layout */
else render_layout(conn); else render_layout(conn);
}
redecorate_window(conn, client); redecorate_window(conn, client);
} }