diff --git a/src/ManagedShell.Common/Helpers/WindowHelper.cs b/src/ManagedShell.Common/Helpers/WindowHelper.cs index 1f224c87..6058f0a2 100644 --- a/src/ManagedShell.Common/Helpers/WindowHelper.cs +++ b/src/ManagedShell.Common/Helpers/WindowHelper.cs @@ -109,7 +109,7 @@ public static void HideWindowFromTasks(IntPtr hWnd) public static void ExcludeWindowFromPeek(IntPtr hWnd) { - int status = (int)DWMNCRENDERINGPOLICY.DWMNCRP_ENABLED; + int status = 1; DwmSetWindowAttribute(hWnd, DWMWINDOWATTRIBUTE.DWMWA_EXCLUDED_FROM_PEEK, ref status,