Skip to content

Commit 5dc6a80

Browse files
committed
[[ Bug 23208 ]] Ensure automatic window tabbing is not allowed
This patch ensures that new stacks will always open in new windows, and not in new tabs in the existing stack window. Also it fixes an issue where a stack window could have a double title bar.
1 parent 039113d commit 5dc6a80

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/notes/bugfix-23208.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure new stacks always open in new windows on macOS

engine/src/mac-core.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ - (void)applicationDidFinishLaunching: (NSNotification *)notification
355355
selector:@selector(interfaceThemeChangedNotification:)
356356
name:@"AppleInterfaceThemeChangedNotification" object:nil];
357357

358+
if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)])
359+
[NSWindow setAllowsAutomaticWindowTabbing: NO];
360+
358361
// We started up successfully, so queue the root runloop invocation
359362
// message.
360363
[self performSelector: @selector(runMainLoop) withObject: nil afterDelay: 0];

0 commit comments

Comments
 (0)