]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Floating: open windows at their requested position
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 21 Jun 2009 11:12:42 +0000 (13:12 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 21 Jun 2009 11:12:42 +0000 (13:12 +0200)
src/manage.c

index 948e9aba971ca30b0cd72671bfff05f16b2dc79f..bfdd9b4fa8fbfe96261aa2d4ecf8ccd718f8249f 100644 (file)
@@ -384,8 +384,8 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
 
                 new->container = NULL;
 
-                new->floating_rect.x = new->rect.x;
-                new->floating_rect.y = new->rect.y;
+                new->floating_rect.x = new->rect.x = x;
+                new->floating_rect.y = new->rect.y = y;
                 LOG("copying size from tiling (%d, %d) size (%d, %d)\n",
                                 new->floating_rect.x, new->floating_rect.y,
                                 new->floating_rect.width, new->floating_rect.height);