Skip to content

Commit 9f174e9

Browse files
authored
Update window_manager_plugin.cpp (#486)
Fix 439 issue: [Windows] Restoring window from minimized state triggers onWindowBlur instead of onWindowFocus.
1 parent 3e8379e commit 9f174e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windows/window_manager_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ std::optional<LRESULT> WindowManagerPlugin::HandleWindowProc(HWND hWnd,
200200
window_manager->maximum_size_.y * window_manager->pixel_ratio_);
201201
result = 0;
202202
} else if (message == WM_NCACTIVATE) {
203-
if (wParam == TRUE) {
203+
if (wParam != 0) {
204204
_EmitEvent("focus");
205205
} else {
206206
_EmitEvent("blur");

0 commit comments

Comments
 (0)