]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/framemanager.cpp
better child focus
[wxWidgets.git] / src / aui / framemanager.cpp
index ef5bf328f9fd364e033275cdac5f702b508bf425..4abd0216ae522e8c24427cb190288ab4bbba9d86 100644 (file)
@@ -4310,7 +4310,8 @@ void wxAuiManager::OnChildFocus(wxChildFocusEvent& event)
     // active panes are allowed by the owner)
     if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE)
     {
-        if (GetPane(event.GetWindow()).IsOk())
+        wxAuiPaneInfo& pane = GetPane(event.GetWindow());
+        if (pane.IsOk() && (pane.state & wxAuiPaneInfo::optionActive) == 0)
         {
             SetActivePane(m_panes, event.GetWindow());
             m_frame->Refresh();