Skip to content

Commit

Permalink
wayland: Fix wingpanel breaking everything (#527)
Browse files Browse the repository at this point in the history
* wayland: Fix wingpanel breaking everything

* Only connect to size_allocate on X

---------

Co-authored-by: Ryan Kornheisl <[email protected]>
  • Loading branch information
leolost2605 and zeebok authored Apr 16, 2024
1 parent 5d22d43 commit 4dd9990
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PanelWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ public class Wingpanel.PanelWindow : Gtk.Window {
key_controller = new Gtk.EventControllerKey (this);
key_controller.key_pressed.connect (on_key_pressed);

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

private void on_realize () {
Expand Down

0 comments on commit 4dd9990

Please sign in to comment.