Skip to content

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

fix: temporary fixes to prevent compilation errors

Lars33d4fac2ec13
diff --git a/LarsWM.Core/Monitors/EventHandlers/MonitorAddedHandler.cs b/LarsWM.Core/Monitors/EventHandlers/MonitorAddedHandler.cs
index a763e00f..73b07810 100644
--- a/LarsWM.Core/Monitors/EventHandlers/MonitorAddedHandler.cs
+++ b/LarsWM.Core/Monitors/EventHandlers/MonitorAddedHandler.cs
@@ -1,4 +1,5 @@
using LarsWM.Core.Common.Models;
+using LarsWM.Core.Common.Services;
using LarsWM.Core.Monitors.Events;
using System;
using System.Collections.Generic;
@@ -17,19 +18,19 @@ namespace LarsWM.Core.Monitors.EventHandler
public void Handle(MonitorAddedEvent msg)
{
- throw new System.NotImplementedException();
+ throw new NotImplementedException();
// Create an initial Workspace for each Monitor
- int index = 0;
- foreach (var monitor in msg.monitors)
- {
- // TODO: add IsFocused property to focused window, workspace & monitor
- var newWorkspace = new Workspace(index, new List<Window>());
- monitor.WorkspacesInMonitor.Add(newWorkspace);
- monitor.DisplayedWorkspace = newWorkspace;
+ // int index = 0;
+ // foreach (var monitor in msg.monitors)
+ // {
+ // // TODO: add IsFocused property to focused window, workspace & monitor
+ // var newWorkspace = new Workspace(index, new List<Window>());
+ // monitor.WorkspacesInMonitor.Add(newWorkspace);
+ // monitor.DisplayedWorkspace = newWorkspace;
- index++;
- }
+ // index++;
+ // }
}
}
}
diff --git a/LarsWM.Core/Startup.cs b/LarsWM.Core/Startup.cs
index e75da9c2..b34d587b 100644
--- a/LarsWM.Core/Startup.cs
+++ b/LarsWM.Core/Startup.cs
@@ -8,12 +8,15 @@ using static LarsWM.Core.WindowsApi.WindowsApiService;
using static LarsWM.Core.WindowsApi.WindowsApiFacade;
using LarsWM.Core.UserConfig.Commands;
using LarsWM.Core.Monitors.Commands;
-
+using LarsWM.Core.Common.Models;
+using LarsWM.Core.Common.Services;
+
namespace LarsWM.Core
{
class Startup
{
private IBus _bus;
+ private List<Monitor> _monitors = new List<Monitor>();
public Startup(IBus bus)
{
@@ -95,7 +98,7 @@ namespace LarsWM.Core
return _monitors.FirstOrDefault(m => m.Screen.DeviceName == screen.DeviceName) ?? _monitors[0];
}
- public void ShiftFocusInDirection(FocusDirection direction)
+ public void ShiftFocusInDirection(MovementDirection direction)
{ }
public void ShiftFocusToWorkspace(Workspace workspace)
@@ -104,7 +107,7 @@ namespace LarsWM.Core
public void MoveFocusedWindowToWorkspace(Window window, Workspace workspace)
{ }
- public void MoveFocusedWindowInDirection(Window window, FocusDirection direction)
+ public void MoveFocusedWindowInDirection(Window window, MovementDirection direction)
{ }
}
diff --git a/LarsWM.Core/UserConfigs/Commands/GetUserConfigCommand.cs b/LarsWM.Core/UserConfigs/Commands/GetUserConfigCommand.cs
index ab824b94..039f2664 100644
--- a/LarsWM.Core/UserConfigs/Commands/GetUserConfigCommand.cs
+++ b/LarsWM.Core/UserConfigs/Commands/GetUserConfigCommand.cs
@@ -1,10 +1,11 @@
-using System;
+using LarsWM.Core.Common.Models;
+using System;
using System.Collections.Generic;
using System.Text;
namespace LarsWM.Core.UserConfig.Commands
{
- public class GetUserConfigCommand
+ public class GetUserConfigCommand : ICommand<string>
{
}
}