diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index c94b7db92e..c9a448aa4d 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -4319,7 +4319,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();