summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/cocoa_common.m9
1 files changed, 7 insertions, 2 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index da6e8124ba..29f6eee026 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -809,7 +809,7 @@ int vo_cocoa_cgl_color_size(struct vo *vo)
}
}
-- (void)mouseMoved: (NSEvent *) theEvent
+- (void)signalMouseMovement:(NSEvent *)theEvent
{
NSView *view = self.contentView;
NSPoint loc = [view convertPoint:[theEvent locationInWindow] fromView:nil];
@@ -822,9 +822,14 @@ int vo_cocoa_cgl_color_size(struct vo *vo)
}
}
+- (void)mouseMoved:(NSEvent *)theEvent
+{
+ [self signalMouseMovement:theEvent];
+}
+
- (void)mouseDragged:(NSEvent *)theEvent
{
- [self mouseEvent: theEvent];
+ [self signalMouseMovement:theEvent];
}
- (void)mouseDown:(NSEvent *)theEvent