Ken Thomases : winemac: Reset the cursor to the normal Mac arrow when it' s outside all Wine windows.

Alexandre Julliard julliard at winehq.org
Mon Feb 25 14:33:46 CST 2013


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

Author: Ken Thomases <ken at codeweavers.com>
Date:   Sun Feb 24 22:53:42 2013 -0600

winemac: Reset the cursor to the normal Mac arrow when it's outside all Wine windows.

---

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

diff --git a/dlls/winemac.drv/cocoa_app.m b/dlls/winemac.drv/cocoa_app.m
index 47ec05c..3744498 100644
--- a/dlls/winemac.drv/cocoa_app.m
+++ b/dlls/winemac.drv/cocoa_app.m
@@ -590,8 +590,12 @@ int macdrv_err_on;
                 [targetWindow postMouseMovedEvent:anEvent absolute:absolute];
                 lastTargetWindow = targetWindow;
             }
-            else
+            else if (lastTargetWindow)
+            {
+                [[NSCursor arrowCursor] set];
+                [self unhideCursor];
                 lastTargetWindow = nil;
+            }
         }
         else if (type == NSLeftMouseDown || type == NSLeftMouseUp ||
                  type == NSRightMouseDown || type == NSRightMouseUp ||




More information about the wine-cvs mailing list