Skip to content

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

feat: added AppState class for holding application state

Lars13ccce22d293
diff --git a/LarsWM/AppState.cs b/LarsWM/AppState.cs
new file mode 100644
index 00000000..81a9c79d
--- /dev/null
+++ b/LarsWM/AppState.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace LarsWM
+{
+ public class AppState
+ {
+ // Not sure whether to change this to a BehaviorSubject.
+ 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>;
+ }
+}