mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-18 20:21:56 -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:
1 file changed
+1
-1
@@ -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