Skip to content

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

feat(domain): add `ChildFocusOrder` for storing which child container last had focus

Lars Berger72ace1d3d51d
diff --git a/LarsWM.Domain/Containers/Container.cs b/LarsWM.Domain/Containers/Container.cs
index 7182504f..f23b18f4 100644
--- a/LarsWM.Domain/Containers/Container.cs
+++ b/LarsWM.Domain/Containers/Container.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
@@ -13,6 +13,11 @@ namespace LarsWM.Domain.Containers
public double SizePercentage { get; set; }
public Container Parent { get; set; } = null;
public List<Container> Children { get; set; } = new List<Container>();
+
+ /// <summary>
+ /// The order of which child containers last had focus.
+ /// </summary>
+ public List<Container> ChildFocusOrder { get; set; } = new List<Container>();
public Container LastFocusedChild { get; set; } = null;
public List<Container> SelfAndSiblings => Parent.Children;