[vlc-commits] [Git][videolan/vlc][master] 2 commits: macosx: Ensure the displaying of the fake title bar gets updated when going...

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sat Apr 12 16:32:12 UTC 2025



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
e2a5545d by Claudio Cambra at 2025-04-12T16:17:11+00:00
macosx: Ensure the displaying of the fake title bar gets updated when going into fullscreen even if we disable library controls

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
d0d9ba3e by Claudio Cambra at 2025-04-12T16:17:11+00:00
macosx: Immediately update library controls when full screen has been entered

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/windows/video/VLCMainVideoViewController.m


Changes:

=====================================
modules/gui/macosx/windows/video/VLCMainVideoViewController.m
=====================================
@@ -433,12 +433,13 @@
     return buttonBox;
 }
 
-- (void)updateLibraryControls
+- (void)updateLibraryControls:(NSNotification *)notification
 {
-    if (!_displayLibraryControls) {
-        return;
-    }
+    [self updateLibraryControls];
+}
 
+- (void)updateLibraryControls
+{
     const NSWindow * const viewWindow = self.view.window;
     const CGFloat windowTitlebarHeight = viewWindow.titlebarHeight;
 
@@ -451,6 +452,15 @@
 
     _fakeTitleBarHeightConstraint.constant = windowFullscreen ? 0 : windowTitlebarHeight;
 
+    if (!self.displayLibraryControls) {
+        return;
+    }
+
+    [NSNotificationCenter.defaultCenter addObserver:self
+                                             selector:@selector(updateLibraryControls:)
+                                                 name:VLCVideoWindowDidEnterFullscreen
+                                               object:nil];
+
     _returnButtonTopConstraint.constant = buttonTopSpace;
     _playQueueButtonTopConstraint.constant = buttonTopSpace;
     _returnButtonBottomConstraint.active = placeInFakeToolbar;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ae286927a6eab3436fd5110f1f51ee4c15704bcf...d0d9ba3e60398c33a303583d780c5038a76a5d8f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ae286927a6eab3436fd5110f1f51ee4c15704bcf...d0d9ba3e60398c33a303583d780c5038a76a5d8f
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list