From ecd4ac2d76ce3f1ad4902ef2f9346f31d9e0ad2c Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 10 Mar 2024 02:49:25 +0900 Subject: [PATCH] PanelWindow: simplify `set_expanded` (#526) --- src/PanelWindow.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PanelWindow.vala b/src/PanelWindow.vala index a7b88ca8..e3b4cff5 100644 --- a/src/PanelWindow.vala +++ b/src/PanelWindow.vala @@ -208,8 +208,8 @@ public class Wingpanel.PanelWindow : Gtk.Window { Services.BackgroundManager.get_default ().restore_window (); this.expanded = false; - this.set_size_request (monitor_width, expanded ? monitor_height : -1); - this.resize (monitor_width, expanded ? monitor_height : 1); + this.set_size_request (monitor_width, -1); + this.resize (monitor_width, 1); } } }