fix a keyboard focus bug:

keyboard will loose focus when recovering from minimized state.
This commit is contained in:
Zhang Zhaolong 2013-10-23 14:03:04 +08:00
parent e979dcf485
commit ccf37ed498
1 changed files with 1 additions and 1 deletions

View File

@ -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;