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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user