Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat(domain): add `ContainerService` property for overriding the container to focus on next focus event

Lars Bergere4ad46f88e8b
diff --git a/LarsWM.Domain/Containers/ContainerService.cs b/LarsWM.Domain/Containers/ContainerService.cs
index 72d8d25c..fef37e7f 100644
--- a/LarsWM.Domain/Containers/ContainerService.cs
+++ b/LarsWM.Domain/Containers/ContainerService.cs
@@ -24,6 +24,12 @@ namespace LarsWM.Domain.Containers
/// </summary>
public Container FocusedContainer => ContainerTree.LastFocusedDescendant;
+ /// <summary>
+ /// If set, this container overrides the target container to set focus to on the next
+ /// focus window event (ie. `EVENT_SYSTEM_FOREGROUND`).
+ /// </summary>
+ public Container PendingFocusContainer = null;
+
private UserConfigService _userConfigService;
public ContainerService(UserConfigService userConfigService)