From 1f9490e9fd0628fd69ebcfdcaac455ae5e8e9ce6 Mon Sep 17 00:00:00 2001 From: Bush2021 <79072750+Bush2021@users.noreply.github.com> Date: Wed, 15 May 2024 22:23:03 -0400 Subject: [PATCH] fix: try to resolve the full-screen detection error in multi-monitor setups --- src/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.h b/src/utils.h index d985c21..97c6f5c 100644 --- a/src/utils.h +++ b/src/utils.h @@ -307,7 +307,7 @@ void ExecuteCommand(int id, HWND hwnd = 0) { bool IsFullScreen(HWND hwnd) { RECT windowRect; - return (GetClientRect(hwnd, &windowRect) && + return (GetWindowRect(hwnd, &windowRect) && (windowRect.left == 0 && windowRect.top == 0 && windowRect.right == GetSystemMetrics(SM_CXSCREEN) && windowRect.bottom == GetSystemMetrics(SM_CYSCREEN)));