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:
@@ -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
|
// We might have the window in our list already if it was on all workspaces and
|
||||||
// now was moved to this workspace
|
// now was moved to this workspace
|
||||||
if (this._lookupIndex(metaWin) !== -1)
|
if (this.containsMetaWindow(metaWin))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!this._isMyWindow(metaWin))
|
if (!this._isMyWindow(metaWin))
|
||||||
|
Reference in New Issue
Block a user