Skip to content

Commit

Permalink
Fix WindowManager.IsFocused() method on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
strixcode committed May 16, 2024
1 parent 87dd7a5 commit f8c0340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/window_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void WindowManager::Blur() {
}

bool WindowManager::IsFocused() {
return GetMainWindow() == GetActiveWindow();
return GetMainWindow() == GetForegroundWindow();
}

void WindowManager::Show() {
Expand Down

0 comments on commit f8c0340

Please sign in to comment.