Commit 0796e26c authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix behaviour of toogle playlist when in native fullscreen

- do not allow to collapse the window
- block the playlist menu item for now, when video is playing
(cherry picked from commit 44a76495)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent a237aae3
...@@ -720,6 +720,11 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -720,6 +720,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
BOOL b_activeVideo = [[VLCMain sharedInstance] activeVideoPlayback]; BOOL b_activeVideo = [[VLCMain sharedInstance] activeVideoPlayback];
BOOL b_restored = NO; BOOL b_restored = NO;
// TODO: implement toggle playlist in this situation (triggerd via menu item).
// but for now we block this case, to avoid displaying only the half
if( b_nativeFullscreenMode && b_fullscreen && b_activeVideo && sender != nil )
return;
if (b_dropzone_active && !b_activeVideo && ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0) if (b_dropzone_active && !b_activeVideo && ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0)
{ {
b_dropzone_active = NO; b_dropzone_active = NO;
...@@ -727,7 +732,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -727,7 +732,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
return; return;
} }
if ( !b_splitview_removed && ( (([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0 && b_activeVideo) if ( !(b_nativeFullscreenMode && b_fullscreen) && !b_splitview_removed && ( (([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0 && b_activeVideo)
|| (b_nonembedded && sender != nil) || (b_nonembedded && sender != nil)
|| (!b_activeVideo && sender != nil) || (!b_activeVideo && sender != nil)
|| b_minimized_view ) ) || b_minimized_view ) )
......
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