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:
parent
ea9c4e589d
commit
956db078c3
@ -609,12 +609,14 @@ var Overview = class {
|
|||||||
this._visible = false;
|
this._visible = false;
|
||||||
this._animationInProgress = false;
|
this._animationInProgress = false;
|
||||||
|
|
||||||
this.emit('hidden');
|
|
||||||
// Handle any calls to show* while we were hiding
|
// Handle any calls to show* while we were hiding
|
||||||
if (this._shown)
|
if (this._shown) {
|
||||||
|
this.emit('hidden');
|
||||||
this._animateVisible(OverviewControls.ControlsState.WINDOW_PICKER);
|
this._animateVisible(OverviewControls.ControlsState.WINDOW_PICKER);
|
||||||
else
|
} else {
|
||||||
Main.layoutManager.hideOverview();
|
Main.layoutManager.hideOverview();
|
||||||
|
this.emit('hidden');
|
||||||
|
}
|
||||||
|
|
||||||
Main.panel.style = null;
|
Main.panel.style = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user