From: Julian Smart Date: Tue, 21 Aug 2007 11:15:09 +0000 (+0000) Subject: Applied patch [ 1736135 ] AUI: Clicking caption ignored on centered panel X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a4c721ee38d6e7656765a5188f89fe59c854058e?ds=sidebyside Applied patch [ 1736135 ] AUI: Clicking caption ignored on centered panel git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 6195560341..664c02947d 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -3846,9 +3846,6 @@ void wxAuiManager::OnLeftDown(wxMouseEvent& event) - if (part->dock && part->dock->dock_direction == wxAUI_DOCK_CENTER) - return; - if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE) { // set the caption as active @@ -3856,6 +3853,9 @@ void wxAuiManager::OnLeftDown(wxMouseEvent& event) Repaint(); } + if (part->dock && part->dock->dock_direction == wxAUI_DOCK_CENTER) + return; + m_action = actionClickCaption; m_action_part = part; m_action_start = wxPoint(event.m_x, event.m_y);