Skip to content

Commit ee0c21f

Browse files
committed
Merge pull request #71 from AvaloniaUI/fixes/fix-WS_EX_TRANSPARENT-strip
Fix WS_EX_TRANSPARENT using XOR instead AND NOT (cherry picked from commit d2e05d0)
1 parent a01e9d4 commit ee0c21f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Avalonia.Controls.WebView.Core/Win/WindowsUtility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public static void MakeHwndTransparent(IntPtr hwnd)
1818
// This combination ensures:
1919
// 1. WS_EX_TRANSPARENT: Makes the window visually transparent but still blocks content from behind the application
2020
// 2. Removing WS_EX_LAYERED: Prevents the window from creating its own compositing surface with default black background
21-
PInvoke.SetWindowLong(p, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE,
22-
(exStyle | (int)0x00000020L) ^ (int)0x00080000L);
21+
PInvoke.SetWindowLong(p, WINDOW_LONG_PTR_INDEX.GWL_EXSTYLE,
22+
(exStyle | (int)0x00000020L) & ~(int)0x00080000L);
2323
}
2424

2525
internal static StandardCursorType MapCursor(uint systemCursorId)

0 commit comments

Comments
 (0)