]> git.saurik.com Git - wxWidgets.git/commit
Return NULL from wxWindow::GetCapture() when the capture is being lost.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Aug 2013 13:28:19 +0000 (13:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Aug 2013 13:28:19 +0000 (13:28 +0000)
commitbf2c43c76e2819be443ab1d830ab68d9569d66b1
tree134a6c896c9af5f625b8e7227a5917afcbd8ae14
parent2d145378f68347bef1dc25356c0a367bed304cd6
Return NULL from wxWindow::GetCapture() when the capture is being lost.

Make GetCapture() return NULL during wxEVT_MOUSE_CAPTURE_{LOST,CHANGED} events
processing in wxMSW to help their handlers to avoid calling ReleaseCapture():
this shouldn't be done as the mouse capture is being lost anyhow and results
in reentrancy problems between NotifyCaptureLost() and ReleaseCapture() if
it's called.

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