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:
parent
8af8a27d91
commit
46c74acb1b
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user