mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Add regex matching to fullscreen check
This commit is contained in:
parent
7347be370e
commit
7bfde0a39b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user