mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01: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:
parent
c686e270a1
commit
ddd873902a
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user