Skip to content

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

feat(domain): create `Event` class for monitor removals

Lars Berger0a3e0fd6b02d
diff --git a/GlazeWM.Domain/Monitors/Events/MonitorRemovedEvent.cs b/GlazeWM.Domain/Monitors/Events/MonitorRemovedEvent.cs
new file mode 100644
index 00000000..5d7debab
--- /dev/null
+++ b/GlazeWM.Domain/Monitors/Events/MonitorRemovedEvent.cs
@@ -0,0 +1,14 @@
+using GlazeWM.Infrastructure.Bussing;
+
+namespace GlazeWM.Domain.Monitors.Events
+{
+ public class MonitorRemovedEvent : Event
+ {
+ public string RemovedDeviceName { get; }
+
+ public MonitorRemovedEvent(string removedDeviceName)
+ {
+ RemovedDeviceName = removedDeviceName;
+ }
+ }
+}