]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/fl/toolwnd.cpp
Faster Deselect
[wxWidgets.git] / contrib / src / fl / toolwnd.cpp
index 0657b18c0f49efad83e467ccf4df0e3e6f398389..d33883b008d3019544b60e5252511a8ae4e81475 100644 (file)
@@ -360,12 +360,6 @@ void wxToolWindow::SetHintCursor( int type )
         return;
     }
 
-    if ( !mMouseCaptured )
-    {
-        mMouseCaptured = true;
-        CaptureMouse();
-    }
-
     // did the cursor actually changed?
 
     if ( type != mCursorType )
@@ -389,6 +383,18 @@ void wxToolWindow::SetHintCursor( int type )
 
             default: break; 
         }
+
+        if (mMouseCaptured)
+        {
+            mMouseCaptured = false;
+            ReleaseMouse();
+        }
+    }
+
+    if ( !mMouseCaptured )
+    {
+        mMouseCaptured = true;
+        CaptureMouse();
     }
 }