diff --git a/windows/mdi.c b/windows/mdi.c index e716adde2da..8345f5edf5f 100644 --- a/windows/mdi.c +++ b/windows/mdi.c @@ -1469,7 +1469,8 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message, return 0; case WM_SETFOCUS: - if (ci->hwndActiveChild != hwnd) MDI_ChildActivate( client, hwnd ); + if (ci->hwndActiveChild != hwnd && IsWindowVisible(hwnd)) + MDI_ChildActivate( client, hwnd ); break; case WM_CHILDACTIVATE: