Skip to content

Commit

Permalink
Update window_manager_plugin.cpp (#486)
Browse files Browse the repository at this point in the history
Fix 439 issue: [Windows] Restoring window from minimized state triggers onWindowBlur instead of onWindowFocus.
  • Loading branch information
alevlako authored Aug 18, 2024
1 parent 3e8379e commit 9f174e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/window_manager_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ std::optional<LRESULT> WindowManagerPlugin::HandleWindowProc(HWND hWnd,
window_manager->maximum_size_.y * window_manager->pixel_ratio_);
result = 0;
} else if (message == WM_NCACTIVATE) {
if (wParam == TRUE) {
if (wParam != 0) {
_EmitEvent("focus");
} else {
_EmitEvent("blur");
Expand Down

0 comments on commit 9f174e9

Please sign in to comment.