Skip to content

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

refactor: modified ctor of Workspace to not take a list of windows to add

Lars360dfc19fcd4
diff --git a/LarsWM.Core/Workspaces/Workspace.cs b/LarsWM.Core/Workspaces/Workspace.cs
index e337054c..1e200ac2 100644
--- a/LarsWM.Core/Workspaces/Workspace.cs
+++ b/LarsWM.Core/Workspaces/Workspace.cs
@@ -1,19 +1,16 @@
using LarsWM.Core.Windows;
-using System;
using System.Collections.Generic;
-using System.Text;
namespace LarsWM.Core.Workspaces
{
public class Workspace
{
- public int Identifier { get; set; }
+ public int Id { get; set; }
public Window LastFocusedWindow { get; set; }
- public List<Window> WindowsInWorkspace = new List<Window>();
+ public List<Window> WindowsInWorkspace { get; set; } = new List<Window>();
- public Workspace(int identifier, List<Window> windowsInWorkspace) {
- Identifier = identifier;
- WindowsInWorkspace = windowsInWorkspace;
+ public Workspace(int id) {
+ Id = id;
}
}
}