summaryrefslogtreecommitdiff
path: root/cocoa
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/BrowserView.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/cocoa/BrowserView.m b/cocoa/BrowserView.m
index 5f4d9a216..241add229 100644
--- a/cocoa/BrowserView.m
+++ b/cocoa/BrowserView.m
@@ -168,7 +168,7 @@ static inline NSRect cocoa_get_caret_rect( BrowserView *view )
- (void) viewDidMoveToWindow;
{
NSTrackingArea *area = [[NSTrackingArea alloc] initWithRect: [self visibleRect]
- options: NSTrackingMouseMoved | NSTrackingActiveInKeyWindow | NSTrackingInVisibleRect
+ options: NSTrackingMouseMoved | NSTrackingMouseEnteredAndExited | NSTrackingActiveInKeyWindow | NSTrackingInVisibleRect
owner: self
userInfo: nil];
[self addTrackingArea: area];
@@ -267,6 +267,11 @@ static browser_mouse_state cocoa_mouse_flags_for_event( NSEvent *evt )
browser_window_mouse_track( browser, cocoa_mouse_flags_for_event( theEvent ), location.x, location.y );
}
+- (void) mouseExited: (NSEvent *) theEvent;
+{
+ [[NSCursor arrowCursor] set];
+}
+
- (void) keyDown: (NSEvent *)theEvent;
{
[self interpretKeyEvents: [NSArray arrayWithObject: theEvent]];