GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat(domain): fire `WorkingAreaResizedEvent` on update of a monitor's working area
Lars Berger02b4d606e4da
diff --git a/GlazeWM.Domain/Monitors/CommandHandlers/RefreshMonitorStateHandler.cs b/GlazeWM.Domain/Monitors/CommandHandlers/RefreshMonitorStateHandler.csindex d041f3af..69beaf38 100644--- a/GlazeWM.Domain/Monitors/CommandHandlers/RefreshMonitorStateHandler.cs+++ b/GlazeWM.Domain/Monitors/CommandHandlers/RefreshMonitorStateHandler.cs@@ -1,8 +1,9 @@-using System.Linq;+using System.Linq;using System.Windows.Forms;using GlazeWM.Domain.Containers;using GlazeWM.Domain.Containers.Commands;using GlazeWM.Domain.Monitors.Commands;+using GlazeWM.Domain.Monitors.Events;using GlazeWM.Domain.Windows;using GlazeWM.Domain.Workspaces;using GlazeWM.Infrastructure.Bussing;@@ -53,6 +54,8 @@ namespace GlazeWM.Domain.Monitors.CommandHandlersfoundMonitor.X = screen.WorkingArea.X;foundMonitor.Y = screen.WorkingArea.Y;foundMonitor.IsPrimary = screen.Primary;++ _bus.RaiseEvent(new WorkingAreaResizedEvent(foundMonitor));}// Verify that all monitors in state exist in `Screen.AllScreens`.