Fix window check always testing for focus (#152)

This commit is contained in:
WarmUpTill 2021-03-22 23:06:44 +01:00 committed by GitHub
parent 1ef8ce4b4a
commit b0ef1fee71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ void checkWindowTitleSwitchDirect(WindowSwitch &s,
OBSWeakSource &scene,
OBSWeakSource &transition)
{
bool focus = s.window == currentWindowTitle;
bool focus = (!s.focus || s.window == currentWindowTitle);
bool fullscreen = (!s.fullscreen || isFullscreen(s.window));
bool max = (!s.maximized || isMaximized(s.window));
@ -202,7 +202,7 @@ void checkWindowTitleSwitchRegex(WindowSwitch &s,
} catch (const std::regex_error &) {
}
bool focus = window == currentWindowTitle;
bool focus = (!s.focus || window == currentWindowTitle);
bool fullscreen = (!s.fullscreen || isFullscreen(window));
bool max = (!s.maximized || isMaximized(window));