From a8b23aa451aa33919ec335cc6e0b573ba720cb45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Thu, 6 Dec 2018 21:19:26 +0100 Subject: [PATCH] regression: Fix new window animation Removing `space.moving` broke a silent assumption used by `insertWindow`. The problem is caused by not detecting layouts that doesn't scroll the space. Detect it by guarding against any active tweens. --- tiling.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiling.js b/tiling.js index 79e6c2a..39a7e54 100644 --- a/tiling.js +++ b/tiling.js @@ -572,7 +572,8 @@ class Space extends Array { } moveDone() { - if (this.cloneContainer.x !== this.targetX || + if (Tweener.getTweenCount(this.cloneContainer) > 0 || + this.cloneContainer.x !== this.targetX || this.actor.y !== 0 || Navigator.navigating || inPreview || noAnimate || Main.overview.visible) {