Commit 051f8476 authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

macosx: don't allow lion fullscreen in combination with nonembedded window

If you try to combine both features, you will end up in an fullscreen window with
playlist and overlayed video controls. Therefore make sure that both cannot be enabled
in simple prefs, and in case the user used advanced prefs, priorize nonembedded window
over the lion fullscreen.
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent ad0a2b09
...@@ -122,10 +122,10 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -122,10 +122,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (void)awakeFromNib - (void)awakeFromNib
{ {
/* setup the styled interface */ /* setup the styled interface */
#ifndef MAC_OS_X_VERSION_10_7
b_nativeFullscreenMode = NO; b_nativeFullscreenMode = NO;
#else #ifdef MAC_OS_X_VERSION_10_7
b_nativeFullscreenMode = config_GetInt( VLCIntf, "macosx-nativefullscreenmode" ); if( config_GetInt( VLCIntf, "embedded-video" ))
b_nativeFullscreenMode = config_GetInt( VLCIntf, "macosx-nativefullscreenmode" );
#endif #endif
i_lastShownVolume = -1; i_lastShownVolume = -1;
t_hide_mouse_timer = nil; t_hide_mouse_timer = nil;
......
...@@ -626,7 +626,8 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -626,7 +626,8 @@ 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
b_nativeFullscreenMode = config_GetInt( p_intf, "macosx-nativefullscreenmode" ); if( config_GetInt( VLCIntf, "embedded-video" ))
b_nativeFullscreenMode = config_GetInt( p_intf, "macosx-nativefullscreenmode" );
#endif #endif
nib_main_loaded = TRUE; nib_main_loaded = TRUE;
} }
......
...@@ -1026,6 +1026,12 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch ...@@ -1026,6 +1026,12 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
- (IBAction)interfaceSettingChanged:(id)sender - (IBAction)interfaceSettingChanged:(id)sender
{ {
if( sender == o_intf_embedded_ckb && [o_intf_embedded_ckb state] == NSOffState )
[o_intf_nativefullscreen_ckb setState: NSOffState];
if( sender == o_intf_nativefullscreen_ckb && [o_intf_nativefullscreen_ckb state] == NSOnState )
[o_intf_embedded_ckb setState: NSOnState];
b_intfSettingChanged = YES; b_intfSettingChanged = YES;
} }
......
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