workspaceThumbnails: Pass monitor index to constructor
We'll soon add workspace thumbnails on secondary monitors as well, so set the monitor explicitly instead of assuming the primary one. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1735>
This commit is contained in:

committed by
Marge Bot

parent
4eb31e4e18
commit
2731d35723
@ -305,8 +305,8 @@ class ControlsManager extends St.Widget {
|
||||
this.dash.showAppsButton);
|
||||
this._searchController.connect('notify::search-active', this._onSearchChanged.bind(this));
|
||||
|
||||
this._thumbnailsBox =
|
||||
new WorkspaceThumbnail.ThumbnailsBox(this._workspaceAdjustment);
|
||||
this._thumbnailsBox = new WorkspaceThumbnail.ThumbnailsBox(
|
||||
this._workspaceAdjustment, Main.layoutManager.primaryIndex);
|
||||
this._thumbnailsBox.connect('notify::should-show', () => {
|
||||
this._thumbnailsBox.show();
|
||||
this._thumbnailsBox.ease_property('expand-fraction',
|
||||
|
Reference in New Issue
Block a user