]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly initialize automatically floating clients (some rendering issues)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 19 Jun 2009 10:34:31 +0000 (12:34 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 19 Jun 2009 10:34:31 +0000 (12:34 +0200)
src/floating.c
src/manage.c

index 310b6a395e774fbfc8907af19ce9558fa6503299..7cf4b6dc553bf49063f4170a1dd6ae880256f273 100644 (file)
@@ -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;
 
index 1f79cb94ef8e23effe25499539add1c975a93e87..f4edc055e1e0d11e5b0cd3ee270c511aa0e1aaf2 100644 (file)
@@ -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;