Don't stop dragging in the grid when the mouse leaves the window.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Mar 2010 23:56:47 +0000 (23:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Mar 2010 23:56:47 +0000 (23:56 +0000)
commit98e956503de9035a6c4ef529da7e377b74d59b69
tree4a7a7ad4831e6dd193e81b419c67b156c9f6d0ba
parent2d6bba41180b9876bce4bd855c07d45874e85e49
Don't stop dragging in the grid when the mouse leaves the window.

Unexpected/unaccounted for mouse leaving and entering events stopped the drag
operation currently in progress in wxGrid. And while it was resumed later,
this resulted in the mouse being captured only twice but released only once.

Fix this by ignoring the leaving and entering events and checking that we
don't capture the mouse again.

Closes #11662.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/grid.cpp