Skip to content

Commit e077e8e

Browse files
authored
Fix WindowManager.IsFocused() method on Windows (#461)
1 parent 69bd484 commit e077e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windows/window_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ void WindowManager::Blur() {
251251
}
252252

253253
bool WindowManager::IsFocused() {
254-
return GetMainWindow() == GetActiveWindow();
254+
return GetMainWindow() == GetForegroundWindow();
255255
}
256256

257257
void WindowManager::Show() {

0 commit comments

Comments
 (0)