]> git.saurik.com Git - wxWidgets.git/commitdiff
*do* generate the LEAVE events even when the mouse is captured
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 20 Feb 2002 01:39:20 +0000 (01:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 20 Feb 2002 01:39:20 +0000 (01:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 44fb41d7693758acfc2635cde3edb89e0d0a6514..3f8bd5c12bd51a28faeaf18c41b843229fe39e10 100644 (file)
@@ -1273,7 +1273,9 @@ void wxWindowMSW::OnIdle(wxIdleEvent& WXUNUSED(event))
     // Check if we need to send a LEAVE event
     if ( m_mouseInWindow )
     {
-        if ( !IsMouseInWindow() && !HasCapture())
+        // note that we should generate the leave event whether the window has
+        // or doesn't have mouse capture
+        if ( !IsMouseInWindow() )
         {
             // Generate a LEAVE event
             m_mouseInWindow = FALSE;