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:
Stefano Pigozzi
2013-09-01 16:10:57 +02:00
parent c686e270a1
commit ddd873902a
+1
View File
@@ -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; }