From bea20f8d7a5c278866d4ce0614dacae345902a3a Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 3 Dec 2012 18:04:46 +0000 Subject: [PATCH] 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 --- src/generic/splitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 1aebd73c3e..825fd50bb9 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -323,7 +323,7 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event) } // left up && dragging 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(); else OnEnterSash(); -- 2.45.2