macosx: disable native fullscreen on El Capitan
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 10 Oct 2015 14:58:01 +0000 (16:58 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 10 Oct 2015 14:58:01 +0000 (16:58 +0200)
Native fullscreen seems to be on by default on El Capitan, even
if the corresponding flag is not set.
This implicitely disables the new split view feature if native
fullscreen is disabled.

close #15491

modules/gui/macosx/Windows.m

index 657bab7..d317acb 100644 (file)
 
     if (b_nativeFullscreenMode) {
         [self setCollectionBehavior: NSWindowCollectionBehaviorFullScreenPrimary];
+    } else if (OSX_EL_CAPITAN) {
+        // Native fullscreen seems to be default on El Capitan, this disables it explicitely
+        [self setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
     }
 
     [super awakeFromNib];