GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
fix(domain): ignore floating focus descendants when inserting container via `MoveFocusedWindowToWorkspaceHandler`
Lars Berger3fa8ea16c1f7
diff --git a/GlazeWM.Domain/Workspaces/CommandHandlers/MoveFocusedWindowToWorkspaceHandler.cs b/GlazeWM.Domain/Workspaces/CommandHandlers/MoveFocusedWindowToWorkspaceHandler.csindex 8c00e4af..817de37d 100644--- a/GlazeWM.Domain/Workspaces/CommandHandlers/MoveFocusedWindowToWorkspaceHandler.cs+++ b/GlazeWM.Domain/Workspaces/CommandHandlers/MoveFocusedWindowToWorkspaceHandler.cs@@ -14,7 +14,12 @@ namespace GlazeWM.Domain.Workspaces.CommandHandlersprivate MonitorService _monitorService;private ContainerService _containerService;- public MoveFocusedWindowToWorkspaceHandler(Bus bus, WorkspaceService workspaceService, MonitorService monitorService, ContainerService containerService)+ public MoveFocusedWindowToWorkspaceHandler(+ Bus bus,+ WorkspaceService workspaceService,+ MonitorService monitorService,+ ContainerService containerService+ ){_bus = bus;_workspaceService = workspaceService;@@ -40,7 +45,7 @@ namespace GlazeWM.Domain.Workspaces.CommandHandlersif (_monitorService.HasDpiDifference(currentWorkspace, targetWorkspace))focusedWindow.HasPendingDpiAdjustment = true;- var insertionTarget = targetWorkspace.LastFocusedDescendant;+ var insertionTarget = targetWorkspace.LastFocusedDescendantOfType(typeof(IResizable));// Insert the focused window into the target workspace.if (insertionTarget == null)