summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/cocoa_common.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index 6a0836ad1e..e541066a7c 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -676,8 +676,17 @@ int vo_cocoa_cgl_color_size(struct vo *vo)
};
[s->view enterFullScreenMode:s->fs_screen withOptions:fsopts];
+
+ // The original "windowed" window will staty around since sending a
+ // view fullscreen wraps it in another window. This is noticeable when
+ // sending the View fullscreen to another screen. Make it go away
+ // manually.
+ [s->window orderOut:self];
} else {
[s->view exitFullScreenModeWithOptions:nil];
+
+ // Show the "windowed" window again.
+ [s->window makeKeyAndOrderFront:self];
[self makeFirstResponder:s->view];
}
}