mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
overviewControls: Update work area also on monitors-changed
The cached work area, which is the work area of the primary monitor, effectively depends on two properties - the (global) work area and the primary monitor - and we are only tracking changes to one of them. Also track monitor changes to also cover the second case. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2623>
This commit is contained in:
parent
def50c38da
commit
ed2a11ba57
1 changed files with 3 additions and 0 deletions
|
|
@ -50,6 +50,9 @@ class ControlsManagerLayout extends Clutter.BoxLayout {
|
|||
global.display.connectObject(
|
||||
'workareas-changed', () => this._updateWorkAreaBox(),
|
||||
this);
|
||||
Main.layoutManager.connectObject(
|
||||
'monitors-changed', () => this._updateWorkAreaBox(),
|
||||
this);
|
||||
this._updateWorkAreaBox();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue