mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-03 01:53:35 +00:00
Compare commits
2 commits
237fa8ccc9
...
1f5bb3ad9f
Author | SHA1 | Date | |
---|---|---|---|
|
1f5bb3ad9f | ||
|
947a1da375 |
|
@ -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