Skip to content

Commit

Permalink
Only connect to size_allocate on X
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Apr 16, 2024
1 parent 709e594 commit 71df990
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PanelWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public class Wingpanel.PanelWindow : Gtk.Window {

key_controller = new Gtk.EventControllerKey (this);
key_controller.key_pressed.connect (on_key_pressed);

if (!Utils.is_wayland ()) {
panel.size_allocate.connect (update_panel_dimensions);
}
}

private void on_realize () {
Expand Down

0 comments on commit 71df990

Please sign in to comment.