forked from Mirrors/wine-wine
Fixed a behavior of the focus when a parent window is disabled.
parent
0f44fb362d
commit
21d50f8ded
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue