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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue