workspace: Use better window check option in existing code

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3386>
This commit is contained in:
Sundeep Mediratta 2024-06-23 15:12:34 -04:00
parent 8af8a27d91
commit 46c74acb1b

View File

@ -1202,7 +1202,7 @@ class Workspace extends St.Widget {
// We might have the window in our list already if it was on all workspaces and
// now was moved to this workspace
if (this._lookupIndex(metaWin) !== -1)
if (this.containsMetaWindow(metaWin))
return;
if (!this._isMyWindow(metaWin))