[gnome-shell/gnome-40] windowManager: Allow animations to start if the overview is closing



commit bb95764506ffc67ca74beceef909cbfe81a091a5
Author: Daniel van Vugt <daniel van vugt canonical com>
Date:   Wed Sep 16 15:03:47 2020 +0800

    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.
    
    (cherry picked from commit ea9c4e589d5ef7092b9baf821f7e5e400038e4a3)
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1982>

 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 d01bac19c7..2ded682362 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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]