[vlc-commits] macosx: lion fullscreen: show fs controller not before animation is finished

David Fuhrmann git at videolan.org
Fri Apr 20 22:58:30 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Apr 20 22:53:13 2012 +0200| [69d5d9aeaac87a57b67d18a98736066d77d06524] | committer: David Fuhrmann

macosx: lion fullscreen: show fs controller not before animation is finished

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

 modules/gui/macosx/CompatibilityFixes.h |    1 +
 modules/gui/macosx/MainWindow.h         |    1 +
 modules/gui/macosx/MainWindow.m         |    8 ++++++--
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/CompatibilityFixes.h b/modules/gui/macosx/CompatibilityFixes.h
index 8901259..cc0d504 100644
--- a/modules/gui/macosx/CompatibilityFixes.h
+++ b/modules/gui/macosx/CompatibilityFixes.h
@@ -95,6 +95,7 @@ enum {
 - (void)setRestorable:(BOOL)b_value;
 - (void)toggleFullScreen:(id)id_value;
 - (void)windowWillEnterFullScreen:(NSNotification *)notification;
+- (void)windowDidEnterFullScreen:(NSNotification *)notification;
 - (void)windowWillExitFullScreen:(NSNotification *)notification;
 @end
 
diff --git a/modules/gui/macosx/MainWindow.h b/modules/gui/macosx/MainWindow.h
index e47efcb..02e5457 100644
--- a/modules/gui/macosx/MainWindow.h
+++ b/modules/gui/macosx/MainWindow.h
@@ -196,6 +196,7 @@
 
 /* lion's native fullscreen handling */
 - (void)windowWillEnterFullScreen:(NSNotification *)notification;
+- (void)windowDidEnterFullScreen:(NSNotification *)notification;
 - (void)windowWillExitFullScreen:(NSNotification *)notification;
 
 @end
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 4c3609d..f159dbd 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -2095,8 +2095,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
     
     [o_video_view setFrame: [[self contentView] frame]];
     b_fullscreen = YES;
-    [o_fspanel setVoutWasUpdated: (int)[[self screen] displayID]];
-    [o_fspanel setActive: nil];
 
     [self recreateHideMouseTimer];
     i_originalLevel = [self level];
@@ -2123,6 +2121,12 @@ static VLCMainWindow *_o_sharedInstance = nil;
     [self setMovableByWindowBackground: NO];
 }
 
+- (void)windowDidEnterFullScreen:(NSNotification *)notification
+{
+    [o_fspanel setVoutWasUpdated: (int)[[self screen] displayID]];
+    [o_fspanel setActive: nil];
+}
+
 - (void)windowWillExitFullScreen:(NSNotification *)notification
 {
 



More information about the vlc-commits mailing list