]> git.sesse.net Git - vlc/commitdiff
macosx: do not explicitely set presentation options for native fullscreen mode
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Mon, 31 Mar 2014 18:20:46 +0000 (20:20 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Mon, 31 Mar 2014 18:29:37 +0000 (20:29 +0200)
These flags will be set internally to the correct values. Mavericks even
warns in the log that these calls are ignored. Additionally, the os itself
knows best if the dock needs to be hidden - this is not always the case due
to the new multi-monitor fullscreen in Mavericks.

modules/gui/macosx/VLCVoutWindowController.m
modules/gui/macosx/Windows.m

index 584d3c28fc3157fcb3eaf5e0c0016a29a023d1e6..9d1e7124707528ab483a889abab9f1807a240b98 100644 (file)
 
             [o_current_window toggleFullScreen:self];
         }
-
-        if (b_fullscreen)
-            [NSApp setPresentationOptions:(NSApplicationPresentationFullScreen | NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)];
-        else
-            [NSApp setPresentationOptions:(NSApplicationPresentationDefault)];
     } else {
         assert(o_current_window);
 
index 9ef38101228bf932abb66f5463bcfe26f39702dc..4f6bfc62659b244f7d91990d86f07ddbf4019006 100644 (file)
 
 - (void)windowWillEnterFullScreen:(NSNotification *)notification
 {
-    // workaround, see #6668
-    [NSApp setPresentationOptions:(NSApplicationPresentationFullScreen | NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)];
-
     i_originalLevel = [self level];
     b_windowShouldExitFullscreenWhenFinished = [[VLCMain sharedInstance] activeVideoPlayback];
 
         if ([[subviews objectAtIndex:x] respondsToSelector:@selector(reshape)])
             [[subviews objectAtIndex:x] reshape];
     }
-
 }
 
 - (void)windowWillExitFullScreen:(NSNotification *)notification