git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14205
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxWindow *winOld = GetCapture();
if ( winOld )
{
wxWindow *winOld = GetCapture();
if ( winOld )
{
+ // I think this is correct, but not compatible with some ports
+#if defined(__WXX11__) || defined(__WXMGL__)
((wxWindowBase*) winOld)->DoReleaseMouse();
((wxWindowBase*) winOld)->DoReleaseMouse();
// save it on stack
wxWindowNext *item = new wxWindowNext;
item->win = winOld;
// save it on stack
wxWindowNext *item = new wxWindowNext;
item->win = winOld;
if ( ms_winCaptureNext )
{
if ( ms_winCaptureNext )
{
+ // I think this is correct, but not compatible with some ports
+#if defined(__WXX11__) || defined(__WXMGL__)
((wxWindowBase*)ms_winCaptureNext->win)->DoCaptureMouse();
((wxWindowBase*)ms_winCaptureNext->win)->DoCaptureMouse();
+#else
+ ms_winCaptureNext->win->CaptureMouse();
+#endif
+
wxWindowNext *item = ms_winCaptureNext;
ms_winCaptureNext = item->next;
delete item;
wxWindowNext *item = ms_winCaptureNext;
ms_winCaptureNext = item->next;
delete item;