cocoa: don't change app activation policy in libmpv

/cc @mpv-player/stable
This commit is contained in:
Stefano Pigozzi authored and Alessandro Ghedini committed 2014-12-17 20:15:38 +01:00
1 parent 5a2947c9d0
commit 292f6f1904
1 file changed
+4 -3
+4 -3
View File
@@ -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];
}
});
}