Implement EVT_MOUSE_CAPTURE_LOST handling for wxPopupTransientWindow.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Oct 2011 22:02:05 +0000 (22:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Oct 2011 22:02:05 +0000 (22:02 +0000)
commit0419fee9c3f0acc5cc0712796b2818f4f434d70e
tree5bfee359dd24370169a46189908f2328b8d66803
parentf9e19204bf8327f1e71f127e5542ee8306282280
Implement EVT_MOUSE_CAPTURE_LOST handling for wxPopupTransientWindow.

Handle mouse capture lost events instead of polling for the mouse status in
EVT_IDLE handler. This is not only more efficient but also catches the cases
when the capture was lost before OnIdle() could be executed which could result
in assertion failures and, before the previous commit, even crashes.

The idle-time code is still used for wxOSX/Carbon because it doesn't seem to
generate mouse capture loss events currently -- but should be removed as soon
as support for these events is added.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/popupwin.h
src/common/popupcmn.cpp