mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-06-07 15:25:21 -04:00
UI: Fix display affinity logic when re-applying
The old behavior toggled display affinity every time the window was updated instead of applying it consistently.
This commit is contained in:
@@ -10037,7 +10037,7 @@ void OBSBasic::SetDisplayAffinity(QWindow *window)
|
||||
if (GetWindowDisplayAffinity(hwnd, &curAffinity)) {
|
||||
if (hideFromCapture && curAffinity != WDA_EXCLUDEFROMCAPTURE)
|
||||
SetWindowDisplayAffinity(hwnd, WDA_EXCLUDEFROMCAPTURE);
|
||||
else if (curAffinity != WDA_NONE)
|
||||
else if (!hideFromCapture && curAffinity != WDA_NONE)
|
||||
SetWindowDisplayAffinity(hwnd, WDA_NONE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user