Skip to content

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

feat: AddMonitorCommand takes a Screen object as a parameter

Lars89fa20037666
diff --git a/LarsWM.Core/Monitors/Commands/AddMonitorCommand.cs b/LarsWM.Core/Monitors/Commands/AddMonitorCommand.cs
index 2b8e360e..c78e6833 100644
--- a/LarsWM.Core/Monitors/Commands/AddMonitorCommand.cs
+++ b/LarsWM.Core/Monitors/Commands/AddMonitorCommand.cs
@@ -2,10 +2,17 @@
using System;
using System.Collections.Generic;
using System.Text;
+using System.Windows.Forms;
namespace LarsWM.Core.Monitors.Commands
{
class AddMonitorCommand : ICommand<Monitor>
{
+ public Screen Screen { get; set; }
+
+ public AddMonitorCommand(Screen screen)
+ {
+ Screen = screen;
+ }
}
}
diff --git a/LarsWM.Core/Startup.cs b/LarsWM.Core/Startup.cs
index 1e552611..e75da9c2 100644
--- a/LarsWM.Core/Startup.cs
+++ b/LarsWM.Core/Startup.cs
@@ -6,6 +6,8 @@ using System.Text;
using System.Windows.Forms;
using static LarsWM.Core.WindowsApi.WindowsApiService;
using static LarsWM.Core.WindowsApi.WindowsApiFacade;
+using LarsWM.Core.UserConfig.Commands;
+using LarsWM.Core.Monitors.Commands;
namespace LarsWM.Core
{