diff options
author | Corbin Dunn <corbin> | 2021-03-04 19:23:27 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2021-03-04 19:23:27 +0300 |
commit | d09b874244c8ef7385aff136acdaae6aae67ea7e (patch) | |
tree | 3ed3faa5e20e47b28b585b6ba1ffdf21f830d33d | |
parent | 3de5fbba3a984fab1a3f69fea3a62e620f55d4b7 (diff) |
macOS/Ghost: Opt out of AppKitās automatic window tabbing
Since Blender is single-tabbed, this will prevent extraneous
tab-related options from appearing in "Window" menu in case AppKit's
internals change.
Reviewed By: #platform_macos, sebbas, ankitm
Differential Revision: https://developer.blender.org/D10606
-rw-r--r-- | intern/ghost/intern/GHOST_SystemCocoa.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index 3b20c95c954..4a23b30e078 100644 --- a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm @@ -646,6 +646,11 @@ GHOST_TSuccess GHOST_SystemCocoa::init() [NSApp setDelegate:appDelegate]; } + // AppKit provides automatic window tabbing. Blender is a single-tabbed application without a + // macOS tab bar, and should explicitly opt-out of this. This is also controlled by the macOS + // user default #NSWindowTabbingEnabled. + NSWindow.allowsAutomaticWindowTabbing = NO; + [NSApp finishLaunching]; [pool drain]; |