workspace: Fix a signal leak in WorkspaceBackground
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2143>
This commit is contained in:
parent
9b70f5902c
commit
ed7fe756ef
@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user