docs: update Windows behavior description

This commit is contained in:
Niklas Wenzel
2025-05-03 03:45:22 +02:00
committed by GitHub
parent c15363e75d
commit 6d1942c53a

View File

@@ -1505,8 +1505,7 @@ Prevents the window contents from being captured by other apps.
On macOS it sets the NSWindow's [`sharingType`](https://developer.apple.com/documentation/appkit/nswindow/sharingtype-swift.property?language=objc) to [`NSWindowSharingNone`](https://developer.apple.com/documentation/appkit/nswindow/sharingtype-swift.enum/none?language=objc).
On Windows it calls [`SetWindowDisplayAffinity`](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowdisplayaffinity) with `WDA_MONITOR`.
For Windows 10 version 2004 and up the window will be removed from capture entirely,
older Windows versions behave as if `WDA_MONITOR` is applied capturing a black window.
On Windows, the window will be captured as a black window.
#### `win.setFocusable(focusable)` _macOS_ _Windows_