Commit 50b9f776 authored by David Fuhrmann's avatar David Fuhrmann

macosx: priorize native fullscreen over non-embedded window

This fixes some problematic behaviour, when the user changed some settings
but has still not made a restart.
(cherry picked from commit 511519e3420eb716616f321f3d0bc630c2261414)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent 815bc9dd
...@@ -126,7 +126,6 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -126,7 +126,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
/* setup the styled interface */ /* setup the styled interface */
b_nativeFullscreenMode = NO; b_nativeFullscreenMode = NO;
#ifdef MAC_OS_X_VERSION_10_7 #ifdef MAC_OS_X_VERSION_10_7
if( config_GetInt( VLCIntf, "embedded-video" ))
b_nativeFullscreenMode = config_GetInt( VLCIntf, "macosx-nativefullscreenmode" ); b_nativeFullscreenMode = config_GetInt( VLCIntf, "macosx-nativefullscreenmode" );
#endif #endif
i_lastShownVolume = -1; i_lastShownVolume = -1;
...@@ -1382,7 +1381,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1382,7 +1381,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (id)setupVideoView - (id)setupVideoView
{ {
vout_thread_t *p_vout = getVout(); vout_thread_t *p_vout = getVout();
if (config_GetInt( VLCIntf, "embedded-video" )) if (config_GetInt( VLCIntf, "embedded-video" ) || (OSX_LION && b_nativeFullscreenMode))
{ {
if ([o_video_view window] != self) if ([o_video_view window] != self)
{ {
......
...@@ -614,7 +614,6 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -614,7 +614,6 @@ static VLCMain *_o_sharedMainInstance = nil;
/* yeah, we are done */ /* yeah, we are done */
b_nativeFullscreenMode = NO; b_nativeFullscreenMode = NO;
#ifdef MAC_OS_X_VERSION_10_7 #ifdef MAC_OS_X_VERSION_10_7
if( config_GetInt( VLCIntf, "embedded-video" ))
b_nativeFullscreenMode = config_GetInt( p_intf, "macosx-nativefullscreenmode" ); b_nativeFullscreenMode = config_GetInt( p_intf, "macosx-nativefullscreenmode" );
#endif #endif
nib_main_loaded = TRUE; nib_main_loaded = TRUE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment