From 44038f9a6ca4860442544edb02b72102ae22b24e Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 28 Dec 2006 16:33:22 +0000 Subject: [PATCH] added comment with pointers to wxEVT_MOUSE_CAPTURE_LOST discussion git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 8c393888f3..167a6d83e7 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -2487,6 +2487,10 @@ static void DoNotifyWindowAboutCaptureLost(wxWindow *win) event.SetEventObject(win); if ( !win->GetEventHandler()->ProcessEvent(event) ) { + // windows must handle this event, otherwise the app wouldn't behave + // correctly if it loses capture unexpectedly; see the discussion here: + // http://sourceforge.net/tracker/index.php?func=detail&aid=1153662&group_id=9863&atid=109863 + // http://article.gmane.org/gmane.comp.lib.wxwidgets.devel/82376 wxFAIL_MSG( _T("window that captured the mouse didn't process wxEVT_MOUSE_CAPTURE_LOST") ); } } -- 2.45.2