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:
Václav Slavík
2007-06-28 12:57:17 +00:00
parent 42fc0309be
commit fd2be5df8d
3 changed files with 75 additions and 4 deletions

View File

@@ -194,7 +194,8 @@ void wxWindowDFB::SetFocus()
gs_focusedWindow = this;
if ( IsShownOnScreen() )
if ( IsShownOnScreen() &&
(!oldFocusedWindow || oldFocusedWindow->GetTLW() != m_tlw) )
{
m_tlw->SetDfbFocus();
}