Skip to content

Commit

Permalink
ShellClients: Fix infinite loop on hide mode NEVER (#2219)
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 authored Jan 8, 2025
1 parent 0d8893a commit f186305
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ShellClients/PanelWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ public class Gala.PanelWindow : Object {

unowned var display = wm.get_display ();

window_positioner = new WindowPositioner (display, window, WindowPositioner.Position.from_anchor (anchor));

notify["anchor"].connect (() => window_positioner.position = WindowPositioner.Position.from_anchor (anchor));

unowned var workspace_manager = display.get_workspace_manager ();
workspace_manager.workspace_added.connect (update_strut);
workspace_manager.workspace_removed.connect (update_strut);

window.size_changed.connect (update_strut);
window.position_changed.connect (update_strut);

window_positioner = new WindowPositioner (display, window, WindowPositioner.Position.from_anchor (anchor));

notify["anchor"].connect (() => window_positioner.position = WindowPositioner.Position.from_anchor (anchor));
}

#if HAS_MUTTER45
Expand Down

0 comments on commit f186305

Please sign in to comment.