GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat(infra): added SetForegroundWindow method from Windows API
Larsf7dadadfb874
diff --git a/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs b/LarsWM.Infrastructure/WindowsApi/WindowsApiService.csindex 9424cc08..96de59b0 100644--- a/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs+++ b/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs@@ -147,6 +147,10 @@ namespace LarsWM.Infrastructure.WindowsApi[DllImport("user32.dll")]public static extern IntPtr GetForegroundWindow();+ [DllImport("user32.dll")]+ [return: MarshalAs(UnmanagedType.Bool)]+ public static extern bool SetForegroundWindow(IntPtr hWnd);+[DllImport("user32.dll")]public static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);