workspacesView: Queue relayout when overview adjustment value change

The overview adjustment quite significantly impacts the layout of
SecondaryMonitorDisplay(), and this needs to be accounted for by queueing
a relayout.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1845>
This commit is contained in:
Georges Basile Stavracas Neto 2021-05-12 11:57:23 -03:00 committed by Marge Bot
parent 81210f5846
commit 0ed1a363a3

View File

@ -627,7 +627,10 @@ class SecondaryMonitorDisplay extends St.Widget {
() => this._updateThumbnailVisibility());
this._stateChangedId = this._overviewAdjustment.connect('notify::value',
() => this._updateThumbnailParams());
() => {
this._updateThumbnailParams();
this.queue_relayout();
});
this._settings = new Gio.Settings({ schema_id: MUTTER_SCHEMA });
this._settings.connect('changed::workspaces-only-on-primary',