GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
fix(domain): 'ignore' command not called on window add
Lars Berger0ceab8d8f8fb
diff --git a/GlazeWM.Domain/Windows/CommandHandlers/AddWindowHandler.cs b/GlazeWM.Domain/Windows/CommandHandlers/AddWindowHandler.csindex 719cf311..f6022727 100644--- a/GlazeWM.Domain/Windows/CommandHandlers/AddWindowHandler.cs+++ b/GlazeWM.Domain/Windows/CommandHandlers/AddWindowHandler.cs@@ -1,4 +1,4 @@-using System.Collections.Generic;+using System.Collections.Generic;using System.Linq;using GlazeWM.Domain.Containers;using GlazeWM.Domain.Containers.Commands;@@ -65,8 +65,6 @@ namespace GlazeWM.Domain.Windows.CommandHandlers// Create the window instance.var window = new TilingWindow(command.WindowHandle, floatingPlacement);- _bus.Invoke(new AttachAndResizeContainerCommand(window, targetParent, targetIndex));-var matchingWindowRules = GetMatchingWindowRules(window);var commandStrings = matchingWindowRules@@ -77,6 +75,8 @@ namespace GlazeWM.Domain.Windows.CommandHandlersif (commandStrings.Contains("ignore"))return CommandResponse.Ok;+ _bus.Invoke(new AttachAndResizeContainerCommand(window, targetParent, targetIndex));+// The OS might spawn the window on a different monitor to the target parent, so adjustments// might need to be made because of DPI.var monitor = _monitorService.GetMonitorFromHandleLocation(windowHandle);