summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-05-21 23:48:54 +0200
committerwm4 <wm4@nowhere>2013-05-26 16:44:20 +0200
commit25d66f526ebae36a6c044652e5006450dd5a30df (patch)
tree5e65607d2addebebb684e867b2727c8d3c513346 /video
parent405182af460232cd9ea857a6efa64e91a123b2c6 (diff)
downloadmpv-25d66f526ebae36a6c044652e5006450dd5a30df.tar.bz2
mpv-25d66f526ebae36a6c044652e5006450dd5a30df.tar.xz
cocoa_common: send mouse moved events to core when dragging
This change fixes mouse autohide when dragging mouse.
Diffstat (limited to 'video')
-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