[vlc-commits] macosx/library window: prevent interactions with underlying content views during video playback

Felix Paul Kühne git at videolan.org
Mon Sep 2 11:57:46 CEST 2019


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Fri Aug 30 17:06:58 2019 +0200| [9370a9044bf1f96f31b605b3625ee5f038171432] | committer: Felix Paul Kühne

macosx/library window: prevent interactions with underlying content views during video playback

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9370a9044bf1f96f31b605b3625ee5f038171432
---

 modules/gui/macosx/library/VLCLibraryVideoDataSource.m | 5 -----
 modules/gui/macosx/library/VLCLibraryWindow.m          | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/gui/macosx/library/VLCLibraryVideoDataSource.m b/modules/gui/macosx/library/VLCLibraryVideoDataSource.m
index de91928fa7..e286bb8d25 100644
--- a/modules/gui/macosx/library/VLCLibraryVideoDataSource.m
+++ b/modules/gui/macosx/library/VLCLibraryVideoDataSource.m
@@ -82,11 +82,6 @@ viewForSupplementaryElementOfKind:(NSCollectionViewSupplementaryElementKind)kind
     return view;
 }
 
-- (void)collectionView:(NSCollectionView *)collectionView didSelectItemsAtIndexPaths:(NSSet<NSIndexPath *> *)indexPaths
-{
-    NSLog(@"library selection changed: %@", indexPaths);
-}
-
 #pragma mark - drag and drop support
 
 - (BOOL)collectionView:(NSCollectionView *)collectionView
diff --git a/modules/gui/macosx/library/VLCLibraryWindow.m b/modules/gui/macosx/library/VLCLibraryWindow.m
index 538f04c49f..4f5c2018c3 100644
--- a/modules/gui/macosx/library/VLCLibraryWindow.m
+++ b/modules/gui/macosx/library/VLCLibraryWindow.m
@@ -570,6 +570,10 @@ static int ShowController(vlc_object_t *p_this, const char *psz_variable,
 
 - (void)enableVideoPlaybackAppearance
 {
+    [_mediaSourceView removeFromSuperviewWithoutNeedingDisplay];
+    [_videoLibraryStackView removeFromSuperviewWithoutNeedingDisplay];
+    [_audioLibraryView removeFromSuperviewWithoutNeedingDisplay];
+
     [self.videoView setHidden:NO];
 
     if (self.nativeFullscreenMode) {
@@ -606,6 +610,7 @@ static int ShowController(vlc_object_t *p_this, const char *psz_variable,
     // restore alpha value to 1 for the case that macosx-opaqueness is set to < 1
     [self setAlphaValue:1.0];
     [self.videoView setHidden:YES];
+    [self segmentedControlAction:nil];
 
     if (self.nativeFullscreenMode) {
         [self showControlsBar];



More information about the vlc-commits mailing list