diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 6c32f01da..1ad403f9f 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -939,7 +939,7 @@ class WorkspaceBackground extends St.Widget { this._workarea = Main.layoutManager.getWorkAreaForMonitor(monitorIndex); this._stateAdjustment = stateAdjustment; - stateAdjustment.connect('notify::value', () => { + this._adjustmentId = stateAdjustment.connect('notify::value', () => { this._updateBorderRadius(); this.queue_relayout(); }); @@ -1054,6 +1054,11 @@ class WorkspaceBackground extends St.Widget { global.display.disconnect(this._workareasChangedId); delete this._workareasChangedId; } + + if (this._adjustmentId) { + this._stateAdjustment.disconnect(this._adjustmentId); + delete this._adjustmentId; + } } });