mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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
This commit is contained in:
parent
3de5fbba3a
commit
d09b874244
1 changed files with 5 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue