From c84ff512cd36bb9b2d6a9db3973a9109b26f1a18 Mon Sep 17 00:00:00 2001 From: Leonhard Kargl Date: Wed, 8 Jan 2025 13:19:56 +0100 Subject: [PATCH] ShellClients: Fix infinite loop on hide mode NEVER --- src/ShellClients/PanelWindow.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ShellClients/PanelWindow.vala b/src/ShellClients/PanelWindow.vala index 7e29bd656..e7e13feac 100644 --- a/src/ShellClients/PanelWindow.vala +++ b/src/ShellClients/PanelWindow.vala @@ -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