Skip to content

Commit

Permalink
cocoa: don't change app activation policy in libmpv
Browse files Browse the repository at this point in the history
/cc @mpv-player/stable
  • Loading branch information
pigoz committed Dec 6, 2014
1 parent f9799ff commit 73b7d45
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions video/out/cocoa_common.m
Expand Up @@ -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];
}
});
}

Expand Down

0 comments on commit 73b7d45

Please sign in to comment.