From 9badc1d786183d7a3e8d30e0f8767fff0ebe0cc9 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 21 Mar 2012 21:11:35 +0100 Subject: 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). --- libvo/cocoa_common.m | 1 + 1 file changed, 1 insertion(+) 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]; -- cgit v1.2.3