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
This commit is contained in:
@@ -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)
|
if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE)
|
||||||
{
|
{
|
||||||
// set the caption as active
|
// set the caption as active
|
||||||
@@ -3856,6 +3853,9 @@ void wxAuiManager::OnLeftDown(wxMouseEvent& event)
|
|||||||
Repaint();
|
Repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (part->dock && part->dock->dock_direction == wxAUI_DOCK_CENTER)
|
||||||
|
return;
|
||||||
|
|
||||||
m_action = actionClickCaption;
|
m_action = actionClickCaption;
|
||||||
m_action_part = part;
|
m_action_part = part;
|
||||||
m_action_start = wxPoint(event.m_x, event.m_y);
|
m_action_start = wxPoint(event.m_x, event.m_y);
|
||||||
|
Reference in New Issue
Block a user