From: Michael Stapelberg Date: Fri, 19 Jun 2009 10:34:31 +0000 (+0200) Subject: Bugfix: Correctly initialize automatically floating clients (some rendering issues) X-Git-Tag: 3.b~49 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=51402b05f5eeed44817c79f1fef989a45b69831f;p=i3%2Fi3 Bugfix: Correctly initialize automatically floating clients (some rendering issues) --- diff --git a/src/floating.c b/src/floating.c index 310b6a39..7cf4b6dc 100644 --- a/src/floating.c +++ b/src/floating.c @@ -110,7 +110,7 @@ void toggle_floating_mode(xcb_connection_t *conn, Client *client, bool automatic client->floating_rect.x = client->rect.x; client->floating_rect.y = client->rect.y; - /* Copy the size the other direction */ + /* Copy size the other direction */ client->child_rect.width = client->floating_rect.width; client->child_rect.height = client->floating_rect.height; diff --git a/src/manage.c b/src/manage.c index 1f79cb94..f4edc055 100644 --- a/src/manage.c +++ b/src/manage.c @@ -391,6 +391,10 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child, /* Make sure it is on top of the other windows */ xcb_raise_window(conn, new->frame); + reposition_client(conn, new); + resize_client(conn, new); + /* redecorate_window flushes */ + redecorate_window(conn, new); } new->initialized = true;