From 685b8b7a00ad171f76aba6a93ffaff890aa0caa1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 6 Dec 2014 12:48:18 +0100 Subject: cocoa: use --idle when running inside bundle Previously when using the bundle we used a custom bizarro thing to wait for events. Just use `--idle` and greatly simplify the code. --- video/out/cocoa_common.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'video/out/cocoa_common.m') diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 3c2f4261d9..fb813fd773 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -211,10 +211,7 @@ void vo_cocoa_uninit(struct vo *vo) [s->gl_ctx release]; [s->view removeFromSuperview]; [s->view release]; - if (s->window) { - [s->window release]; - [NSApp setActivationPolicy:NSApplicationActivationPolicyAccessory]; - } + if (s->window) [s->window release]; }); } -- cgit v1.2.3