fix a keyboard focus bug:
keyboard will loose focus when recovering from minimized state.
This commit is contained in:
parent
e979dcf485
commit
ccf37ed498
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user