From ea9c4e589d5ef7092b9baf821f7e5e400038e4a3 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Wed, 16 Sep 2020 15:03:47 +0800 Subject: [PATCH] windowManager: Allow animations to start if the overview is closing So the `WindowManager._mapWindow` animation doesn't get skipped if the overview is visible but closing. Part-of: --- js/ui/windowManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index d01bac19c..2ded68236 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -1118,7 +1118,8 @@ var WindowManager = class { } _shouldAnimate() { - return !(Main.overview.visible || this._workspaceAnimation.gestureActive); + const overviewOpen = Main.overview.visible && !Main.overview.closing; + return !(overviewOpen || this._workspaceAnimation.gestureActive); } _shouldAnimateActor(actor, types) {