mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
overview: Don't claim to be SHOWN when HIDDEN during startup animation
When the overview gets hidden during the startup animation, the callback would still change the state to SHOWN, despite the overview not being shown. This can happen for example if a `monitors-changed` signal triggers a relayout during startup. See: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2514#note_1683525 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2667>
This commit is contained in:
parent
623ab2b85c
commit
bb42973730
1 changed files with 6 additions and 0 deletions
|
|
@ -683,6 +683,12 @@ var Overview = class extends Signals.EventEmitter {
|
|||
this._changeShownState(OverviewShownState.SHOWING);
|
||||
|
||||
this._overview.runStartupAnimation(() => {
|
||||
// Overview got hidden during startup animation
|
||||
if (this._shownState !== OverviewShownState.SHOWING) {
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this._syncGrab()) {
|
||||
callback();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue