fixes to handling of focus changes for toplevel windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -194,7 +194,8 @@ void wxWindowDFB::SetFocus()
|
||||
|
||||
gs_focusedWindow = this;
|
||||
|
||||
if ( IsShownOnScreen() )
|
||||
if ( IsShownOnScreen() &&
|
||||
(!oldFocusedWindow || oldFocusedWindow->GetTLW() != m_tlw) )
|
||||
{
|
||||
m_tlw->SetDfbFocus();
|
||||
}
|
||||
|
Reference in New Issue
Block a user