From 78e3821bd5f378047bd497cea0df7594d24a7194 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 17 Jan 2015 02:45:17 +0100 Subject: cocoa: fix fullscreen handling Fixes #1483, if it even compiles. --- video/out/cocoa_common.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 796a67c832..47f686dbd4 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -581,8 +581,6 @@ static void vo_cocoa_fullscreen(struct vo *vo) if (s->embedded) return; - opts->fullscreen = !opts->fullscreen; - vo_cocoa_update_screen_info(vo, NULL); draw_changes_after_next_frame(vo); @@ -608,11 +606,14 @@ static void vo_cocoa_control_get_icc_profile(struct vo *vo, void *arg) int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg) { + struct mp_vo_opts *opts = vo->opts; + switch (request) { case VOCTRL_CHECK_EVENTS: *events |= vo_cocoa_check_events(vo); return VO_TRUE; case VOCTRL_FULLSCREEN: + opts->fullscreen = !opts->fullscreen; return vo_cocoa_fullscreen_sync(vo); case VOCTRL_ONTOP: return vo_cocoa_ontop(vo); -- cgit v1.2.3