Commit 21d50f8d authored by Francis Beaudet's avatar Francis Beaudet Committed by Alexandre Julliard

Fixed a behavior of the focus when a parent window is disabled.

parent 0f44fb36
......@@ -1721,7 +1721,7 @@ BOOL WINAPI EnableWindow( HWND hwnd, BOOL enable )
if( wndPtr->flags & WIN_NATIVE )
wndPtr->pDriver->pSetHostAttr( wndPtr, HAK_ACCEPTFOCUS, FALSE );
if ((hwnd == GetFocus()) || IsChild( hwnd, GetFocus() ))
if (hwnd == GetFocus())
{
SetFocus( 0 ); /* A disabled window can't have the focus */
}
......
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