]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/window.cpp
fixes to handling of focus changes for toplevel windows
[wxWidgets.git] / src / dfb / window.cpp
index b3f8121c5eb4487672ee5ef8bc690b2aaae05b12..f82ffb8ed60ecb344ba970291cd8f6bf10a93e52 100644 (file)
@@ -194,7 +194,8 @@ void wxWindowDFB::SetFocus()
 
     gs_focusedWindow = this;
 
-    if ( IsShownOnScreen() )
+    if ( IsShownOnScreen() &&
+         (!oldFocusedWindow || oldFocusedWindow->GetTLW() != m_tlw) )
     {
         m_tlw->SetDfbFocus();
     }