From cbc10bbd16128e57588be6508d528d86f361e235 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 4 Jul 2014 12:23:22 +0000 Subject: [PATCH] Skip mouse button release events in wxGenericListCtrl. This is similar to r76094 for wxGenericTreeCtrl and fixes a similar problem: clicking in a wxListCtrl inside wxNotebook confused GtkNotebook mouse tracking logic because it didn't get some events. Closes #16365. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 7def225918..2545541523 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2426,6 +2426,9 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event ) { // reset the selection and bail out HighlightAll(false); + + if ( event.LeftUp() ) + event.Skip(); } return; @@ -2501,6 +2504,8 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event ) } m_lineSelectSingleOnUp = (size_t)-1; + + event.Skip(); } else {