diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-12-06 10:13:11 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-12-17 20:15:38 +0100 |
commit | 292f6f1904dfd1a637748ea86af0fd7a56136018 (patch) | |
tree | 76a69fe6919da938875320840538936f4afb5f32 | |
parent | 5a2947c9d08ac6a1f5f3f335cad103c0da213897 (diff) | |
download | mpv-292f6f1904dfd1a637748ea86af0fd7a56136018.tar.bz2 mpv-292f6f1904dfd1a637748ea86af0fd7a56136018.tar.xz |
cocoa: don't change app activation policy in libmpv
/cc @mpv-player/stable
-rw-r--r-- | video/out/cocoa_common.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 9285102dbb..32d190aa82 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -211,9 +211,10 @@ 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]; + [NSApp setActivationPolicy:NSApplicationActivationPolicyAccessory]; + } }); } |