diff --git a/src/Avalonia.Controls.WebView.Core/Win/WindowsUtility.cs b/src/Avalonia.Controls.WebView.Core/Win/WindowsUtility.cs index 442d151..210eead 100644 --- a/src/Avalonia.Controls.WebView.Core/Win/WindowsUtility.cs +++ b/src/Avalonia.Controls.WebView.Core/Win/WindowsUtility.cs @@ -18,8 +18,8 @@ public static void MakeHwndTransparent(IntPtr hwnd) // This combination ensures: // 1. WS_EX_TRANSPARENT: Makes the window visually transparent but still blocks content from behind the application // 2. Removing WS_EX_LAYERED: Prevents the window from creating its own compositing surface with default black background - PInvoke.SetWindowLong(p, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, - (exStyle | (int)0x00000020L) ^ (int)0x00080000L); + PInvoke.SetWindowLong(p, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE, + (exStyle | (int)0x00000020L) & ~(int)0x00080000L); } internal static StandardCursorType MapCursor(uint systemCursorId)