overview: Emit 'hidden' after it's *really* hidden

Previously we would emit 'hidden' before the overview was fully hidden,
so any attempts to animate windows on that signal could still fail.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>
This commit is contained in:
Daniel van Vugt 2020-09-17 15:24:12 +08:00
parent ea9c4e589d
commit 956db078c3

View File

@ -609,12 +609,14 @@ var Overview = class {
this._visible = false;
this._animationInProgress = false;
this.emit('hidden');
// Handle any calls to show* while we were hiding
if (this._shown)
if (this._shown) {
this.emit('hidden');
this._animateVisible(OverviewControls.ControlsState.WINDOW_PICKER);
else
} else {
Main.layoutManager.hideOverview();
this.emit('hidden');
}
Main.panel.style = null;