summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2012-03-21 21:11:35 +0100
committerUoti Urpala <uau@mplayer2.org>2012-03-25 22:30:38 +0300
commit9badc1d786183d7a3e8d30e0f8767fff0ebe0cc9 (patch)
treed5b725a5e9d70fd94e0292c7e4c05bb7c00e5c30
parent215035b31abc4bc17e0af231952f410b4165e00c (diff)
downloadmpv-9badc1d786183d7a3e8d30e0f8767fff0ebe0cc9.tar.bz2
mpv-9badc1d786183d7a3e8d30e0f8767fff0ebe0cc9.tar.xz
cocoa_common: update screen info before entering fullscreen
If the user moved the window to another screen, fullscreen mode would still use the original screen. Fix to use the screen the window is currently on (unless overridden by --xineramascreen).
-rw-r--r--libvo/cocoa_common.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvo/cocoa_common.m b/libvo/cocoa_common.m
index 52768edd1d..f5ad7a0943 100644
--- a/libvo/cocoa_common.m
+++ b/libvo/cocoa_common.m
@@ -379,6 +379,7 @@ void create_menu()
- (void) fullscreen
{
if (!vo_fs) {
+ update_screen_info();
[NSApp setPresentationOptions:NSApplicationPresentationHideDock|NSApplicationPresentationHideMenuBar];
s->windowed_frame = [self frame];
[self setHasShadow:NO];