From ddd873902aa488f05989cb221c6027168408cee2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 1 Sep 2013 16:05:44 +0200 Subject: 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. --- video/out/cocoa_common.m | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3