From f76f9e82205fb087643ac86014166509fca6fcfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 25 Jun 2024 19:24:35 +0200 Subject: [PATCH] window-list: Don't use homogeneous layout We want all buttons in the window list to have the same size, but that's already achieved via max/natural-width in the CSS. Not enforcing the equal size via the layout manager will allow buttons to temporarily have a different size when we start animating additions and removals. Part-of: --- extensions/window-list/extension.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js index fc60a4de..7d005f0f 100644 --- a/extensions/window-list/extension.js +++ b/extensions/window-list/extension.js @@ -729,22 +729,15 @@ class WindowList extends St.Widget { let box = new St.BoxLayout({x_expand: true, y_expand: true}); this.add_child(box); - let layout = new Clutter.BoxLayout({homogeneous: true}); - this._windowList = new St.Widget({ + this._windowList = new St.BoxLayout({ style_class: 'window-list', reactive: true, - layout_manager: layout, x_align: Clutter.ActorAlign.START, x_expand: true, y_expand: true, }); box.add_child(this._windowList); - this._windowList.connect('style-changed', () => { - let node = this._windowList.get_theme_node(); - let spacing = node.get_length('spacing'); - this._windowList.layout_manager.spacing = spacing; - }); this._windowList.connect('scroll-event', this._onScrollEvent.bind(this)); let indicatorsBox = new St.BoxLayout({x_align: Clutter.ActorAlign.END});