From: Michael Stapelberg Date: Fri, 13 Nov 2009 18:55:34 +0000 (+0100) Subject: Bugfix: Correctly switch border types for floating windows (Thanks msi) X-Git-Tag: 3.e~6^2~241 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d48a5157521ec015e7423639c8ddc6deec5a4c54;p=i3%2Fi3 Bugfix: Correctly switch border types for floating windows (Thanks msi) --- diff --git a/src/client.c b/src/client.c index 215140c2..c0031d71 100644 --- a/src/client.c +++ b/src/client.c @@ -297,11 +297,16 @@ void client_change_border(xcb_connection_t *conn, Client *client, char border_ty /* Ensure that the child’s position inside our window gets updated */ client->force_reconfigure = true; - /* For clients inside a container, we can simply render the container. - * If the client is floating, we need to render the whole layout */ + /* For clients inside a container, we can simply render the container */ if (client->container != NULL) render_container(conn, client->container); - else render_layout(conn); + 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); + } redecorate_window(conn, client); }