Commit e069cf14 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Do not activate an MDI child if the child is invisible.

parent a270615f
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment