From be27e337edcd4ef54969fc87622ce31390b1ac01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sat, 21 Apr 2018 15:44:36 +0200 Subject: [PATCH] insertWindow: Only set clone position for new windows --- tiling.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tiling.js b/tiling.js index 7049add..020c8da 100644 --- a/tiling.js +++ b/tiling.js @@ -669,6 +669,9 @@ function insertWindow(metaWindow, {existing}) { metaWindow.move_frame(true, position.x, position.y); + metaWindow.clone.set_position( + position.x - x_offset, + position.y - y_offset); clone.set_scale(0, 0); Tweener.addTween(clone, { @@ -678,10 +681,6 @@ function insertWindow(metaWindow, {existing}) { }); } - metaWindow.clone.set_position( - position.x - x_offset, - position.y - y_offset); - if (metaWindow.has_focus()) { space.selectedWindow = metaWindow; ensureViewport(metaWindow, space, true);