From 9ed46519c3a41bc2faa8bfc896bc6d5f703c01b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sat, 7 Jul 2018 20:42:49 +0200 Subject: [PATCH] Animate selection scale when inserting a new window --- tiling.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tiling.js b/tiling.js index 83556ac..6eb4e83 100644 --- a/tiling.js +++ b/tiling.js @@ -1192,6 +1192,10 @@ function insertWindow(metaWindow, {existing}) { connectSizeChanged(); } }); + space.selection.set_scale(0, 0); + Tweener.addTween(space.selection, { + scale_x: 1, scale_y: 1, time: 0.25, transition: 'easeInOutQuad' + }); } else { clone.set_position( frame.x - monitor.x - x_offset - space.cloneContainer.x,