GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
fix(domain): correct uses of `MoveContainerWithinTreeCommand` where args were out of order
Lars Berger9fcaf7d35d2d
diff --git a/GlazeWM.Domain/Windows/CommandHandlers/MoveFocusedWindowHandler.cs b/GlazeWM.Domain/Windows/CommandHandlers/MoveFocusedWindowHandler.csindex 527f6fce..ea5582ad 100644--- a/GlazeWM.Domain/Windows/CommandHandlers/MoveFocusedWindowHandler.cs+++ b/GlazeWM.Domain/Windows/CommandHandlers/MoveFocusedWindowHandler.cs@@ -101,7 +101,7 @@ namespace GlazeWM.Domain.Windows.CommandHandlersvar insertionIndex = targetParent.Layout != layoutForDirection || direction == Direction.UP ||direction == Direction.LEFT ? targetDescendant.Index + 1 : targetDescendant.Index;- _bus.Invoke(new MoveContainerWithinTreeCommand(targetParent, focusedWindow, insertionIndex));+ _bus.Invoke(new MoveContainerWithinTreeCommand(focusedWindow, targetParent, insertionIndex));_bus.Invoke(new RedrawContainersCommand());}@@ -116,9 +116,9 @@ namespace GlazeWM.Domain.Windows.CommandHandlers// TODO: Descend into container if possible.if (direction == Direction.UP || direction == Direction.LEFT)- _bus.Invoke(new MoveContainerWithinTreeCommand(workspaceInDirection, focusedWindow));+ _bus.Invoke(new MoveContainerWithinTreeCommand(focusedWindow, workspaceInDirection));else- _bus.Invoke(new MoveContainerWithinTreeCommand(workspaceInDirection, focusedWindow, 0));+ _bus.Invoke(new MoveContainerWithinTreeCommand(focusedWindow, workspaceInDirection, 0));// Since window has crossed monitors, adjustments might need to be made because of DPI.focusedWindow.HasPendingDpiAdjustment = true;@@ -164,7 +164,7 @@ namespace GlazeWM.Domain.Windows.CommandHandlersvar insertionIndex = targetParent.Layout != layoutForDirection || direction == Direction.UP ||direction == Direction.LEFT ? targetDescendant.Index + 1 : targetDescendant.Index;- _bus.Invoke(new MoveContainerWithinTreeCommand(targetParent, focusedWindow, insertionIndex));+ _bus.Invoke(new MoveContainerWithinTreeCommand(focusedWindow, targetParent, insertionIndex));}else{@@ -172,7 +172,7 @@ namespace GlazeWM.Domain.Windows.CommandHandlersvar insertionIndex = (direction == Direction.UP || direction == Direction.LEFT) ?insertionReference.Index : insertionReference.Index + 1;- _bus.Invoke(new MoveContainerWithinTreeCommand(ancestorWithLayout, focusedWindow, insertionIndex));+ _bus.Invoke(new MoveContainerWithinTreeCommand(focusedWindow, ancestorWithLayout, insertionIndex));}_bus.Invoke(new RedrawContainersCommand());