GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat(infra): add enum for params that can be passed to `ShowWindow`
Larsf75e555f69a9
diff --git a/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs b/LarsWM.Infrastructure/WindowsApi/WindowsApiService.csindex 465a3878..bf55d419 100644--- a/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs+++ b/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs@@ -157,8 +157,17 @@ namespace LarsWM.Infrastructure.WindowsApi[DllImport("user32.dll")]public static extern bool SetFocus(IntPtr hWnd);+ /// <summary>+ /// Params that can be passed to `ShowWindow`. Only the subset of flags relevant to+ /// this application are included.+ /// </summary>+ public enum ShowWindowFlags : uint+ {+ RESTORE = 9,+ }+[DllImport("user32.dll")]- public static extern bool ShowWindow(IntPtr hWnd, int X);+ public static extern bool ShowWindow(IntPtr hWnd, ShowWindowFlags flags);[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]public static extern int GetWindowTextLength(IntPtr hWnd);