Ken Thomases : winemac: Treat mouse moves in a window title bar as outside the window.

Alexandre Julliard julliard at winehq.org
Fri Jan 10 14:44:52 CST 2014


Module: wine
Branch: stable
Commit: 8d0b683fcb9d11f73c50edefb47f791785890401
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8d0b683fcb9d11f73c50edefb47f791785890401

Author: Ken Thomases <ken at codeweavers.com>
Date:   Thu Oct 17 23:44:43 2013 -0500

winemac: Treat mouse moves in a window title bar as outside the window.

Don't queue mouse-moved events.  Reset the cursor.

(cherry picked from commit 8747df094d7470afac80a43c7e63adfc595b4252)

---

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

diff --git a/dlls/winemac.drv/cocoa_app.m b/dlls/winemac.drv/cocoa_app.m
index 4f54d93..3d89082 100644
--- a/dlls/winemac.drv/cocoa_app.m
+++ b/dlls/winemac.drv/cocoa_app.m
@@ -1352,6 +1352,8 @@ int macdrv_err_on;
             windowUnderNumber = [NSWindow windowNumberAtPoint:point
                                   belowWindowWithWindowNumber:0];
             targetWindow = (WineWindow*)[NSApp windowWithWindowNumber:windowUnderNumber];
+            if (!NSMouseInRect(point, [targetWindow contentRectForFrameRect:[targetWindow frame]], NO))
+                targetWindow = nil;
         }
 
         if ([targetWindow isKindOfClass:[WineWindow class]])




More information about the wine-cvs mailing list