From 7bfde0a39bb9ec3bb3e8bb543608155d8ac6578f Mon Sep 17 00:00:00 2001 From: Myned Date: Wed, 10 Jun 2020 04:06:04 -0400 Subject: [PATCH] Add regex matching to fullscreen check --- src/win/advanced-scene-switcher-win.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/win/advanced-scene-switcher-win.cpp b/src/win/advanced-scene-switcher-win.cpp index d9667920..bf1e047e 100644 --- a/src/win/advanced-scene-switcher-win.cpp +++ b/src/win/advanced-scene-switcher-win.cpp @@ -111,7 +111,9 @@ bool isFullscreen(std::string &title) while (hwnd) { string wtitle; if (WindowValid(hwnd) && GetWindowTitle(hwnd, wtitle) && - wtitle == title) + (wtitle == title || + QString::fromStdString(wtitle).contains(QRegularExpression( + QString::fromStdString(title))))) break; hwnd = GetNextWindow(hwnd, GW_HWNDNEXT);