Avoid setting sash resize cursor when mouse is still over border of second pane with wxGTK

This made it possible to have the resize cursor, but not be able to drag the
sash, and happened because wxGTK sends a leave event when mouse leaves client
area instead of outer border of window. Setting the useless SashHitTest()
"tolerance" parameter to zero avoids the problem.
Fixes #1397


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2012-12-03 18:04:46 +00:00
parent 59ee332f1e
commit bea20f8d7a

View File

@@ -323,7 +323,7 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
} // left up && dragging } // left up && dragging
else if ((event.Moving() || event.Leaving() || event.Entering()) && (m_dragMode == wxSPLIT_DRAG_NONE)) else if ((event.Moving() || event.Leaving() || event.Entering()) && (m_dragMode == wxSPLIT_DRAG_NONE))
{ {
if ( event.Leaving() || !SashHitTest(x, y) ) if ( event.Leaving() || !SashHitTest(x, y, 0) )
OnLeaveSash(); OnLeaveSash();
else else
OnEnterSash(); OnEnterSash();