mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-03 01:53:35 +00:00
Merge 947a1da375
into 9d67bf2662
This commit is contained in:
commit
237fa8ccc9
|
@ -9868,6 +9868,16 @@ void OBSBasic::ToggleShowHide()
|
|||
EnumDialogs();
|
||||
if (!modalDialogs.isEmpty() || !visMsgBoxes.isEmpty())
|
||||
return;
|
||||
|
||||
#ifdef _WIN32
|
||||
/* Cleans the SetDisplayAffinity setting property */
|
||||
HWND hwnd = (HWND)this->winId();
|
||||
DWORD curAffinity;
|
||||
if (GetWindowDisplayAffinity(hwnd, &curAffinity)) {
|
||||
if (curAffinity != WDA_NONE)
|
||||
SetWindowDisplayAffinity(hwnd, WDA_NONE);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
SetShowing(!showing);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue