Skip to content

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

feat(infra): moved classes related to windows api & event/command bussing to Infrastructure project

Lars19944afb51ac
diff --git a/LarsWM.Core/Common/Services/Bus.cs b/LarsWM.Infrastructure/Bussing/Bus.cs
similarity index 94%
rename from LarsWM.Core/Common/Services/Bus.cs
rename to LarsWM.Infrastructure/Bussing/Bus.cs
index d63cfbc0..7f386ce7 100644
--- a/LarsWM.Core/Common/Services/Bus.cs
+++ b/LarsWM.Infrastructure/Bussing/Bus.cs
@@ -1,10 +1,9 @@
-using LarsWM.Core.Common.Models;
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
-namespace LarsWM.Core.Common.Services
+namespace LarsWM.Infrastructure.Bussing
{
/// <summary>
/// Bus facilitates communication to command and event handlers.
diff --git a/LarsWM.Core/Common/Models/Command.cs b/LarsWM.Infrastructure/Bussing/Command.cs
similarity index 80%
rename from LarsWM.Core/Common/Models/Command.cs
rename to LarsWM.Infrastructure/Bussing/Command.cs
index 6d7389f7..c453bab0 100644
--- a/LarsWM.Core/Common/Models/Command.cs
+++ b/LarsWM.Infrastructure/Bussing/Command.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
-namespace LarsWM.Core.Common.Models
+namespace LarsWM.Infrastructure.Bussing
{
public class Command
{
diff --git a/LarsWM.Core/Common/Models/Event.cs b/LarsWM.Infrastructure/Bussing/Event.cs
similarity index 80%
rename from LarsWM.Core/Common/Models/Event.cs
rename to LarsWM.Infrastructure/Bussing/Event.cs
index 8f66d354..e7e3c065 100644
--- a/LarsWM.Core/Common/Models/Event.cs
+++ b/LarsWM.Infrastructure/Bussing/Event.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
-namespace LarsWM.Core.Common.Models
+namespace LarsWM.Infrastructure.Bussing
{
public class Event
{
diff --git a/LarsWM.Core/Common/Services/IBus.cs b/LarsWM.Infrastructure/Bussing/IBus.cs
similarity index 73%
rename from LarsWM.Core/Common/Services/IBus.cs
rename to LarsWM.Infrastructure/Bussing/IBus.cs
index 5b7cd5f6..611e1486 100644
--- a/LarsWM.Core/Common/Services/IBus.cs
+++ b/LarsWM.Infrastructure/Bussing/IBus.cs
@@ -1,9 +1,8 @@
-using LarsWM.Core.Common.Models;
-using System;
+using System;
using System.Collections.Generic;
using System.Text;
-namespace LarsWM.Core.Common.Services
+namespace LarsWM.Infrastructure.Bussing
{
public interface IBus
{
diff --git a/LarsWM.Core/Common/Models/ICommandHandler.cs b/LarsWM.Infrastructure/Bussing/ICommandHandler.cs
similarity index 79%
rename from LarsWM.Core/Common/Models/ICommandHandler.cs
rename to LarsWM.Infrastructure/Bussing/ICommandHandler.cs
index b0d7ef23..fd85aac7 100644
--- a/LarsWM.Core/Common/Models/ICommandHandler.cs
+++ b/LarsWM.Infrastructure/Bussing/ICommandHandler.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
-namespace LarsWM.Core.Common.Models
+namespace LarsWM.Infrastructure.Bussing
{
public interface ICommandHandler<TCommand> where TCommand : Command
{
diff --git a/LarsWM.Core/Common/Models/IEventHandler.cs b/LarsWM.Infrastructure/Bussing/IEventHandler.cs
similarity index 78%
rename from LarsWM.Core/Common/Models/IEventHandler.cs
rename to LarsWM.Infrastructure/Bussing/IEventHandler.cs
index 920425f6..b3c4889b 100644
--- a/LarsWM.Core/Common/Models/IEventHandler.cs
+++ b/LarsWM.Infrastructure/Bussing/IEventHandler.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
-namespace LarsWM.Core.Common.Models
+namespace LarsWM.Infrastructure.Bussing
{
public interface IEventHandler<TEvent> where TEvent : Event
{
diff --git a/LarsWM.Infrastructure/Class1.cs b/LarsWM.Infrastructure/Class1.cs
deleted file mode 100644
index 9760a97c..00000000
--- a/LarsWM.Infrastructure/Class1.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using System;
-
-namespace LarsWM.Infrastructure
-{
- public class Class1
- {
- }
-}
diff --git a/LarsWM.Core/Common/Models/SetWindowPosFlags.cs b/LarsWM.Infrastructure/WindowsApi/SetWindowPosFlags.cs
similarity index 97%
rename from LarsWM.Core/Common/Models/SetWindowPosFlags.cs
rename to LarsWM.Infrastructure/WindowsApi/SetWindowPosFlags.cs
index 5f45e77b..1611f52d 100644
--- a/LarsWM.Core/Common/Models/SetWindowPosFlags.cs
+++ b/LarsWM.Infrastructure/WindowsApi/SetWindowPosFlags.cs
@@ -1,6 +1,6 @@
using System;
-namespace LarsWM.Core.WindowsApi
+namespace LarsWM.Infrastructure.WindowsApi
{
/// <summary>
/// Window sizing and positioning flags
diff --git a/LarsWM.Core/Common/Models/WindowRect.cs b/LarsWM.Infrastructure/WindowsApi/WindowRect.cs
similarity index 91%
rename from LarsWM.Core/Common/Models/WindowRect.cs
rename to LarsWM.Infrastructure/WindowsApi/WindowRect.cs
index 6bb801c5..78563847 100644
--- a/LarsWM.Core/Common/Models/WindowRect.cs
+++ b/LarsWM.Infrastructure/WindowsApi/WindowRect.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
-namespace LarsWM.Core.WindowsApi.DataTypes
+namespace LarsWM.Infrastructure.WindowsApi
{
public struct WindowRect
{
diff --git a/LarsWM.Core/Common/Services/WindowsApiFacade.cs b/LarsWM.Infrastructure/WindowsApi/WindowsApiFacade.cs
similarity index 94%
rename from LarsWM.Core/Common/Services/WindowsApiFacade.cs
rename to LarsWM.Infrastructure/WindowsApi/WindowsApiFacade.cs
index 74586248..f8109e28 100644
--- a/LarsWM.Core/Common/Services/WindowsApiFacade.cs
+++ b/LarsWM.Infrastructure/WindowsApi/WindowsApiFacade.cs
@@ -4,12 +4,12 @@ using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
-using static LarsWM.Core.WindowsApi.WindowsApiService;
-using static LarsWM.Core.UserConfigs.UserConfigService;
-using LarsWM.Core.WindowsApi.DataTypes;
-using LarsWM.Core.Windows;
+using static LarsWM.Infrastructure.WindowsApi.WindowsApiService;
+using static LarsWM.Infrastructure.UserConfigs.UserConfigService;
+using LarsWM.Infrastructure.WindowsApi.DataTypes;
+using LarsWM.Infrastructure.Windows;
-namespace LarsWM.Core.WindowsApi
+namespace LarsWM.Infrastructure.WindowsApi
{
class WindowsApiFacade
{
diff --git a/LarsWM.Core/Common/Services/WindowsApiService.cs b/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs
similarity index 98%
rename from LarsWM.Core/Common/Services/WindowsApiService.cs
rename to LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs
index 4fc3750b..d4793804 100644
--- a/LarsWM.Core/Common/Services/WindowsApiService.cs
+++ b/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs
@@ -1,4 +1,4 @@
-using LarsWM.Core.WindowsApi.DataTypes;
+using LarsWM.Infrastructure.WindowsApi.DataTypes;
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
@@ -6,7 +6,7 @@ using System.Text;
using System.Windows.Forms;
using System.Windows.Input;
-namespace LarsWM.Core.WindowsApi
+namespace LarsWM.Infrastructure.WindowsApi
{
class WindowsApiService
{