Skip to content

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

feat(infra): create `Event` class for window moved/resized event

Lars Berger68d4db658ccb
diff --git a/GlazeWM.Infrastructure/WindowsApi/Events/WindowMovedOrResizedEvent.cs b/GlazeWM.Infrastructure/WindowsApi/Events/WindowMovedOrResizedEvent.cs
new file mode 100644
index 00000000..7258b238
--- /dev/null
+++ b/GlazeWM.Infrastructure/WindowsApi/Events/WindowMovedOrResizedEvent.cs
@@ -0,0 +1,15 @@
+using System;
+using GlazeWM.Infrastructure.Bussing;
+
+namespace GlazeWM.Infrastructure.WindowsApi.Events
+{
+ public class WindowMovedOrResizedEvent : Event
+ {
+ public IntPtr WindowHandle { get; }
+
+ public WindowMovedOrResizedEvent(IntPtr windowHandle)
+ {
+ WindowHandle = windowHandle;
+ }
+ }
+}