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

Alexandre Julliard julliard at winehq.org
Fri Oct 18 14:24:16 CDT 2013


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

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.

---

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

diff --git a/dlls/winemac.drv/cocoa_app.m b/dlls/winemac.drv/cocoa_app.m
index 6e74327..92e16ff 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