Skip to content

Commit dfdc815

Browse files
authored
Merge pull request #141 from cairoshell/fix-peek-param
Fix peek parameter
2 parents cf7405d + 8f95efb commit dfdc815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ManagedShell.Common/Helpers/WindowHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static void HideWindowFromTasks(IntPtr hWnd)
109109

110110
public static void ExcludeWindowFromPeek(IntPtr hWnd)
111111
{
112-
int status = (int)DWMNCRENDERINGPOLICY.DWMNCRP_ENABLED;
112+
int status = 1;
113113
DwmSetWindowAttribute(hWnd,
114114
DWMWINDOWATTRIBUTE.DWMWA_EXCLUDED_FROM_PEEK,
115115
ref status,

0 commit comments

Comments
 (0)