mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
cleanup: Use type-safe comparisons
We have been using type-safe comparisons in new code for quite a while now, however old code has only been adapted slowly. Change all the remaining bits to get rid of another legacy style difference. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2866>
This commit is contained in:
parent
9a3913d4a0
commit
a42f7c2384
94 changed files with 847 additions and 845 deletions
|
|
@ -457,7 +457,7 @@ class WorkspacesView extends WorkspacesViewBase {
|
|||
} else {
|
||||
workspace = this._workspaces[j];
|
||||
|
||||
if (workspace.metaWorkspace != metaWorkspace) { /* removed */
|
||||
if (workspace.metaWorkspace !== metaWorkspace) { /* removed */
|
||||
workspace.destroy();
|
||||
this._workspaces.splice(j, 1);
|
||||
} /* else kept */
|
||||
|
|
@ -1082,7 +1082,7 @@ class WorkspacesDisplay extends St.Widget {
|
|||
return Clutter.EVENT_PROPAGATE;
|
||||
|
||||
if (this._workspacesOnlyOnPrimary &&
|
||||
this._getMonitorIndexForEvent(event) != this._primaryIndex)
|
||||
this._getMonitorIndexForEvent(event) !== this._primaryIndex)
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
|
||||
return Main.wm.handleWorkspaceScroll(event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue