[REGEDIT] Check the correct value in WM_ACTIVATE (#6895)

This commit is contained in:
Whindmar Saksit
2024-05-15 22:33:41 +02:00
committed by GitHub
parent 965230ded4
commit 15c42f3ef8

View File

@@ -1400,7 +1400,7 @@ LRESULT CALLBACK FrameWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
return DefWindowProcW(hWnd, message, wParam, lParam);
break;
case WM_ACTIVATE:
if (LOWORD(hWnd) && g_pChildWnd)
if (LOWORD(wParam) != WA_INACTIVE && g_pChildWnd)
SetFocus(g_pChildWnd->hWnd);
break;
case WM_SIZE: