summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa_common.m
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/cocoa_common.m')
-rw-r--r--video/out/cocoa_common.m8
1 files changed, 3 insertions, 5 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index 7e660e9fae..8b6bea66dd 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -315,7 +315,6 @@ static void create_window(struct vo *vo, uint32_t d_width, uint32_t d_height,
if (opts->native_fs) {
[s->window setCollectionBehavior:
NSWindowCollectionBehaviorFullScreenPrimary];
- [NSApp setPresentationOptions:NSFullScreenWindowMask];
}
}
@@ -552,8 +551,6 @@ static void vo_cocoa_fullscreen(struct vo *vo)
if (s->icc_fs_profile_path != s->icc_wnd_profile_path)
s->icc_profile_path_changed = true;
- [s->window didChangeFullScreenState];
-
// Make the core aware of the view size change.
resize_window(vo);
}
@@ -791,9 +788,10 @@ int vo_cocoa_cgl_color_size(struct vo *vo)
- (void)putCommand:(char*)cmd
{
- mp_cmd_t *cmdt = mp_input_parse_cmd(self.vout->input_ctx, bstr0(cmd), "");
+ char *cmd_ = ta_strdup(NULL, cmd);
+ mp_cmd_t *cmdt = mp_input_parse_cmd(self.vout->input_ctx, bstr0(cmd_), "");
mp_input_queue_cmd(self.vout->input_ctx, cmdt);
- ta_free(cmd);
+ ta_free(cmd_);
}
- (void)performAsyncResize:(NSSize)size {