return true in isFullscreen() if window maximized

This commit is contained in:
WarmUpTill 2020-06-11 16:25:17 +02:00
parent 7bfde0a39b
commit 3151a7542f

View File

@ -124,6 +124,9 @@ bool isFullscreen(std::string &title)
&monitorInfo);
if (hwnd && hwnd != GetDesktopWindow() && hwnd != GetShellWindow()) {
if (IsZoomed(hwnd)) {
return true;
}
GetWindowRect(hwnd, &appBounds);
if (monitorInfo.rcMonitor.bottom == appBounds.bottom &&
monitorInfo.rcMonitor.top == appBounds.top &&