GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
fix(domain): prevent duplicate entries in child focus order when creating split containers
Lars Berger03caeb7251af
diff --git a/GlazeWM.Domain/Containers/CommandHandlers/ChangeContainerLayoutHandler.cs b/GlazeWM.Domain/Containers/CommandHandlers/ChangeContainerLayoutHandler.csindex 758c6584..d9f43e39 100644--- a/GlazeWM.Domain/Containers/CommandHandlers/ChangeContainerLayoutHandler.cs+++ b/GlazeWM.Domain/Containers/CommandHandlers/ChangeContainerLayoutHandler.cs@@ -1,4 +1,3 @@-using System.Collections.Generic;using System.Linq;using GlazeWM.Domain.Common.Enums;using GlazeWM.Domain.Containers.Commands;@@ -14,7 +13,11 @@ namespace GlazeWM.Domain.Containers.CommandHandlersprivate ContainerService _containerService;private WindowService _windowService;- public ChangeContainerLayoutHandler(Bus bus, ContainerService containerService, WindowService windowService)+ public ChangeContainerLayoutHandler(+ Bus bus,+ ContainerService containerService,+ WindowService windowService+ ){_bus = bus;_containerService = containerService;@@ -62,7 +65,6 @@ namespace GlazeWM.Domain.Containers.CommandHandlersvar splitContainer = new SplitContainer{Layout = newLayout,- ChildFocusOrder = new List<Container> { window },};// Replace the window with the wrapping split container. The window has to be attached to