]> git.sesse.net Git - vlc/commitdiff
macosx: fix resize to old size when finishing from fullscreen mode
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Wed, 12 Jun 2013 16:43:11 +0000 (18:43 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Wed, 12 Jun 2013 18:48:29 +0000 (20:48 +0200)
modules/gui/macosx/MainWindow.m

index 63b7bb8eaf1eb96eb458b67ead6bdc8c2f0951d0..e96b6adc83003683cb1ceb5b24cc53a2ac9b3220 100644 (file)
@@ -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