diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-09-01 16:05:44 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-09-01 16:10:57 +0200 |
commit | ddd873902aa488f05989cb221c6027168408cee2 (patch) | |
tree | f44febb05d1e482d946da4fd3fc57c2dd1c6ef38 /video/out/cocoa_common.m | |
parent | c686e270a13a967e0b729b173d66bd5efc5fd1ca (diff) | |
download | mpv-ddd873902aa488f05989cb221c6027168408cee2.tar.bz2 mpv-ddd873902aa488f05989cb221c6027168408cee2.tar.xz |
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.
Diffstat (limited to 'video/out/cocoa_common.m')
-rw-r--r-- | video/out/cocoa_common.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index e52f4a664a..289c158b01 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -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; } |