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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>
This commit is contained in:
Daniel van Vugt 2020-09-16 15:03:47 +08:00
parent 7c1b30b272
commit ea9c4e589d

View File

@ -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) {