From 0ed1a363a37db5cf7c9d84f5d068a9cd36996503 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 12 May 2021 11:57:23 -0300 Subject: [PATCH] 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: --- js/ui/workspacesView.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 6aa8b2615..1d03e3131 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -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',