mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
workspace: Fix a signal leak in WorkspaceBackground
(cherry picked from commit ed7fe756ef)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2180>
This commit is contained in:
parent
2e3f5f2ad7
commit
e28ed7ddc4
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue