]> git.saurik.com Git - wxWidgets.git/commitdiff
added comment with pointers to wxEVT_MOUSE_CAPTURE_LOST discussion
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 28 Dec 2006 16:33:22 +0000 (16:33 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 28 Dec 2006 16:33:22 +0000 (16:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index 8c393888f31b12c11ab58d9c817ddbb4e13d980e..167a6d83e7448cc0db47517ad7abd68a7948f47f 100644 (file)
@@ -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") );
     }
 }