workspaceThumbnail: Initialize signal handler ids to 0

They are used in conditions, so initialize them first.
This commit is contained in:
Jonas Ådahl 2018-04-25 22:03:16 +02:00
parent ac58c4280b
commit 2c0376c150

View File

@ -674,6 +674,11 @@ var ThumbnailsBox = new Lang.Class({
this._updateSwitcherVisibility.bind(this));
Main.layoutManager.connect('monitors-changed', this._rebuildThumbnails.bind(this));
this._switchWorkspaceNotifyId = 0;
this._nWorkspacesNotifyId = 0;
this._syncStackingId = 0;
this._workareasChangedId = 0;
},
_updateSwitcherVisibility() {