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
This commit is contained in:
Vadim Zeitlin
2014-07-04 12:23:22 +00:00
parent cd88f54e37
commit cbc10bbd16

View File

@@ -2426,6 +2426,9 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
{ {
// reset the selection and bail out // reset the selection and bail out
HighlightAll(false); HighlightAll(false);
if ( event.LeftUp() )
event.Skip();
} }
return; return;
@@ -2501,6 +2504,8 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
} }
m_lineSelectSingleOnUp = (size_t)-1; m_lineSelectSingleOnUp = (size_t)-1;
event.Skip();
} }
else else
{ {