Skip to content

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

feat(boot): listen for window event hooks on app startup

Larsaeee809d5276
diff --git a/LarsWM.Bootstrapper/Startup.cs b/LarsWM.Bootstrapper/Startup.cs
index e1499ed9..18341edd 100644
--- a/LarsWM.Bootstrapper/Startup.cs
+++ b/LarsWM.Bootstrapper/Startup.cs
@@ -2,7 +2,9 @@ using LarsWM.Domain.Common.Services;
using LarsWM.Domain.Monitors;
using LarsWM.Domain.Monitors.Commands;
using LarsWM.Domain.UserConfigs.Commands;
+using LarsWM.Domain.Windows;
using LarsWM.Infrastructure.Bussing;
+using LarsWM.Infrastructure.WindowsApi;
using System.Windows.Forms;
namespace LarsWM.Bootstrapper
@@ -11,20 +13,26 @@ namespace LarsWM.Bootstrapper
{
private IBus _bus;
private MonitorService _monitorService;
-
private KeybindingService _keybindingService;
+ private WindowEventService _windowEventService;
+ private WindowHooksHandler _windowHooksHandler;
- public Startup(IBus bus, MonitorService monitorService, KeybindingService keybindingService)
+ public Startup(IBus bus, MonitorService monitorService, KeybindingService keybindingService, WindowEventService windowEventService, WindowHooksHandler windowHooksHandler)
{
_bus = bus;
_monitorService = monitorService;
_keybindingService = keybindingService;
+ _windowEventService = windowEventService;
+ _windowHooksHandler = windowHooksHandler;
}
public void Init()
{
_keybindingService.Init();
+ _windowEventService.Init();
+ _windowHooksHandler.Configure();
+
// Populate initial monitors, windows, workspaces and user config.
PopulateInitialState();