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 2013-05-21 23:48:54 +02:00 committed by wm4
parent 405182af46
commit 25d66f526e
1 changed files with 7 additions and 2 deletions

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