Skip to content

Commit

Permalink
fix: try to resolve the full-screen detection error in multi-monitor …
Browse files Browse the repository at this point in the history
…setups
  • Loading branch information
Bush2021 committed May 16, 2024
1 parent a49d36b commit 1f9490e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit 1f9490e

Please sign in to comment.