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:
parent
3c1d7aeb86
commit
a8ecf3c8f2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user