From b0ef1fee711dd9ac259611e9ac3ff7ca03c7af3d Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Mon, 22 Mar 2021 23:06:44 +0100 Subject: [PATCH] Fix window check always testing for focus (#152) --- src/switch-window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch-window.cpp b/src/switch-window.cpp index aa830555..04f25351 100644 --- a/src/switch-window.cpp +++ b/src/switch-window.cpp @@ -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));