[vlc-commits] macosx: fix resize to old size when finishing from fullscreen mode

David Fuhrmann git at videolan.org
Wed Jun 12 21:02:40 CEST 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Jun 12 18:43:11 2013 +0200| [f664fa80bc043fc6d73021710d26c28be7344f18] | committer: David Fuhrmann

macosx: fix resize to old size when finishing from fullscreen mode

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

 modules/gui/macosx/MainWindow.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 63b7bb8..e96b6ad 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -745,7 +745,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
         if (!b_fullscreen)
             frameBeforePlayback = [self frame];
     } else {
-        if (!b_nonembedded && !b_fullscreen && frameBeforePlayback.size.width > 0 && frameBeforePlayback.size.height > 0)
+        if (!b_nonembedded && (!b_nativeFullscreenMode || (b_nativeFullscreenMode && !b_fullscreen)) && frameBeforePlayback.size.width > 0 && frameBeforePlayback.size.height > 0)
             [[self animator] setFrame:frameBeforePlayback display:YES];
 
         // update fs button to reflect state for next startup



More information about the vlc-commits mailing list