From ccf37ed4983c609bb1737cbdcb0f31952b48b451 Mon Sep 17 00:00:00 2001 From: Zhang Zhaolong Date: Wed, 23 Oct 2013 14:03:04 +0800 Subject: [PATCH] fix a keyboard focus bug: keyboard will loose focus when recovering from minimized state. --- client/Windows/wf_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/Windows/wf_event.c b/client/Windows/wf_event.c index c243d35da..d47f37729 100644 --- a/client/Windows/wf_event.c +++ b/client/Windows/wf_event.c @@ -518,7 +518,7 @@ LRESULT CALLBACK wf_event_proc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam case WM_ACTIVATE: { - int activate = (int)(short) LOWORD(lParam); + int activate = (int)(short) LOWORD(wParam); if (activate != WA_INACTIVE) { g_focus_hWnd = hWnd;