From f53118dabd2e6d4e00e7cece08338f07214818e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sat, 21 Apr 2018 10:37:29 +0200 Subject: [PATCH] setInitialPosition: Add animation --- tiling.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tiling.js b/tiling.js index 9d29df7..2b81c48 100644 --- a/tiling.js +++ b/tiling.js @@ -681,6 +681,13 @@ function setInitialPosition(actor, existing) { let frame = metaWindow.get_frame_rect(); let x_offset = frame.x - buffer.x; let y_offset = frame.y - buffer.y; + let clone = metaWindow.clone; + clone.set_scale(0, 0); + Tweener.addTween(clone, { + scale_x: 1, + scale_y: 1, + time: 0.25 + }) metaWindow.clone.set_position( metaWindow.scrollwm_initial_position.x - x_offset, metaWindow.scrollwm_initial_position.y - y_offset);