GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat(domain): add `Container` getter for getting the bottom of the focus stack
Lars02c71f7a5c05
diff --git a/LarsWM.Domain/Containers/Container.cs b/LarsWM.Domain/Containers/Container.csindex 99f351a1..6c4032e1 100644--- a/LarsWM.Domain/Containers/Container.cs+++ b/LarsWM.Domain/Containers/Container.cs@@ -25,6 +25,22 @@ namespace LarsWM.Domain.Containers}}+ /// <summary>+ /// Get the element at the bottom of the focus stack.+ /// </summary>+ public Container LastFocusedTail+ {+ get+ {+ var tail = LastFocusedContainer;++ while (tail?.LastFocusedContainer != null)+ tail = tail.LastFocusedContainer;++ return tail;+ }+ }+// TODO: Rename to SelfAndDescendants and change to getter.public IEnumerable<Container> Flatten(){