Skip to content

Commit

Permalink
PanelWindow: simplify set_expanded (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter authored Mar 9, 2024
1 parent 4a6433b commit ecd4ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PanelWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit ecd4ac2

Please sign in to comment.