mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 15:11:09 +08:00
cocoa_common: enable click-through on the video view
Generate a mouse down event on the first click so that one can interact with the OSC directly as opposed to wasting the first click in order to focus the window.
This commit is contained in:
@@ -822,6 +822,7 @@ int vo_cocoa_cgl_color_size(struct vo *vo)
|
||||
return CGRectContainsPoint(clippedBounds, [self mouseLocation]);
|
||||
}
|
||||
|
||||
- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent { return YES; }
|
||||
- (BOOL)acceptsFirstResponder { return YES; }
|
||||
- (BOOL)becomeFirstResponder { return YES; }
|
||||
- (BOOL)resignFirstResponder { return YES; }
|
||||
|
||||
Reference in New Issue
Block a user