workspace: Ignore new windows that appear while the overview is closing
This can easily happen if an app launches and maps a window faster than the overview closes. We don't want the window clone appearing and then suddenly disappearing in that case. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>
This commit is contained in:
parent
74d0b066e9
commit
7c1b30b272
@ -1280,7 +1280,8 @@ class Workspace extends St.Widget {
|
||||
}
|
||||
|
||||
_windowAdded(metaWorkspace, metaWin) {
|
||||
this._doAddWindow(metaWin);
|
||||
if (!Main.overview.closing)
|
||||
this._doAddWindow(metaWin);
|
||||
}
|
||||
|
||||
_windowRemoved(metaWorkspace, metaWin) {
|
||||
@ -1288,7 +1289,7 @@ class Workspace extends St.Widget {
|
||||
}
|
||||
|
||||
_windowEnteredMonitor(metaDisplay, monitorIndex, metaWin) {
|
||||
if (monitorIndex == this.monitorIndex)
|
||||
if (monitorIndex === this.monitorIndex && !Main.overview.closing)
|
||||
this._doAddWindow(metaWin);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user