cocoa_common: send mouse moved events to core when dragging

This change fixes mouse autohide when dragging mouse.
This commit is contained in:
Stefano Pigozzi authored and wm4 committed 2013-05-26 16:44:20 +02:00
1 parent 405182af46
commit 25d66f526e
1 file changed
+7 -2
+7 -2
View File
@@ -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