GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat(infra): add `GetDesktopWindow` method from Windows API
Lars Bergere298640d5c7a
diff --git a/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs b/LarsWM.Infrastructure/WindowsApi/WindowsApiService.csindex cd7e407f..3eaec349 100644--- a/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs+++ b/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs@@ -144,6 +144,9 @@ namespace LarsWM.Infrastructure.WindowsApi[return: MarshalAs(UnmanagedType.Bool)]public static extern bool EndDeferWindowPos(IntPtr hWinPosInfo);+ [DllImport("user32.dll")]+ public static extern IntPtr GetDesktopWindow();+[DllImport("user32.dll")]public static extern IntPtr GetForegroundWindow();