GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat: changed properties of AppState to all be of type List
Lars033bcb3f70bc
diff --git a/LarsWM.Core/AppState.cs b/LarsWM.Core/AppState.csindex 22226c55..400ffddd 100644--- a/LarsWM.Core/AppState.cs+++ b/LarsWM.Core/AppState.cs@@ -7,9 +7,11 @@ namespace LarsWM.Core{public class AppState{- // Not sure whether to change this to a BehaviorSubject.+ // Not sure whether these should be BehaviorSubjects.public List<Monitor> Monitors = new List<Monitor>();- public List<Workspace> Workspaces => Monitors.Select(m => m.WorkspacesInMonitor) as List<Workspace>;- public List<Window> Windows => Workspaces.Select(w => w.WindowsInWorkspace) as List<Window>;+ public List<Workspace> Workspaces = new List<Workspace>();+ public List<Window> Windows = new List<Window>();++ // Create method InitialiseState that invokes AddMonitorCommand etc?}}diff --git a/LarsWM.Core/Windows/Window.cs b/LarsWM.Core/Windows/Window.csindex 6508fcb4..984d46ac 100644--- a/LarsWM.Core/Windows/Window.cs+++ b/LarsWM.Core/Windows/Window.cs@@ -24,6 +24,12 @@ namespace LarsWM.Corepublic bool CanLayout => !IsWindowCloaked(this) && IsWindowManageable(this);+ public void Remove()+ {+ // Clear from list of windows in AppState+ // Clear from WindowsInWorkspace of workspaces in AppState+ }+/// <summary>/// This window's style flags./// </summary>