Add regex matching to fullscreen check

This commit is contained in:
Myned 2020-06-10 04:06:04 -04:00
parent 7347be370e
commit 7bfde0a39b
No known key found for this signature in database
GPG Key ID: BC58C09870A63E59

View File

@ -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);