Ken Thomases : winemac: Ignore mouse capture during window drags for routing click and move events.

Alexandre Julliard julliard at winehq.org
Wed Jan 29 14:53:31 CST 2014


Module: wine
Branch: master
Commit: 70c4f43ed365c368ae83857550ff335280fe93e2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=70c4f43ed365c368ae83857550ff335280fe93e2

Author: Ken Thomases <ken at codeweavers.com>
Date:   Tue Jan 28 15:50:15 2014 -0600

winemac: Ignore mouse capture during window drags for routing click and move events.

---

 dlls/winemac.drv/cocoa_app.m |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winemac.drv/cocoa_app.m b/dlls/winemac.drv/cocoa_app.m
index d499fd1..dff6977 100644
--- a/dlls/winemac.drv/cocoa_app.m
+++ b/dlls/winemac.drv/cocoa_app.m
@@ -1857,14 +1857,14 @@ int macdrv_err_on;
                  type == NSRightMouseDragged || type == NSOtherMouseDragged)
         {
             [self handleMouseMove:anEvent];
-            ret = mouseCaptureWindow != nil;
+            ret = mouseCaptureWindow && ![windowsBeingDragged count];
         }
         else if (type == NSLeftMouseDown || type == NSLeftMouseUp ||
                  type == NSRightMouseDown || type == NSRightMouseUp ||
                  type == NSOtherMouseDown || type == NSOtherMouseUp)
         {
             [self handleMouseButton:anEvent];
-            ret = mouseCaptureWindow != nil;
+            ret = mouseCaptureWindow && ![windowsBeingDragged count];
         }
         else if (type == NSScrollWheel)
         {




More information about the wine-cvs mailing list