Skip to content

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

feat(domain): register `RefreshMonitorStateHandler` for DI

Lars Berger2713ca1d1904
diff --git a/GlazeWM.Domain/DependencyInjection.cs b/GlazeWM.Domain/DependencyInjection.cs
index 6556c990..d1ba305b 100644
--- a/GlazeWM.Domain/DependencyInjection.cs
+++ b/GlazeWM.Domain/DependencyInjection.cs
@@ -49,6 +49,7 @@ namespace GlazeWM.Domain
services.AddSingleton<ICommandHandler<SetFocusedDescendantCommand>, SetFocusedDescendantHandler>();
services.AddSingleton<ICommandHandler<ToggleFocusModeCommand>, ToggleFocusModeHandler>();
services.AddSingleton<ICommandHandler<AddMonitorCommand>, AddMonitorHandler>();
+ services.AddSingleton<ICommandHandler<RefreshMonitorStateCommand>, RefreshMonitorStateHandler>();
services.AddSingleton<ICommandHandler<EvaluateUserConfigCommand>, EvaluateUserConfigHandler>();
services.AddSingleton<ICommandHandler<RegisterKeybindingsCommand>, RegisterKeybindingsHandler>();
services.AddSingleton<ICommandHandler<AddWindowCommand>, AddWindowHandler>();
@@ -70,6 +71,7 @@ namespace GlazeWM.Domain
services.AddSingleton<IEventHandler<WindowDestroyedEvent>, WindowDestroyedHandler>();
services.AddSingleton<IEventHandler<WindowFocusedEvent>, WindowFocusedHandler>();
services.AddSingleton<IEventHandler<WindowHiddenEvent>, WindowHiddenHandler>();
+ services.AddSingleton<IEventHandler<WindowLocationChangedEvent>, WindowLocationChangedHandler>();
services.AddSingleton<IEventHandler<WindowMinimizedEvent>, WindowMinimizedHandler>();
services.AddSingleton<IEventHandler<WindowMinimizeEndedEvent>, WindowMinimizeEndedHandler>();
services.AddSingleton<IEventHandler<WindowMovedOrResizedEvent>, WindowMovedOrResizedHandler>();