Change: [OSX] Disable macOS Sierra's automatic tab feature

This commit is contained in:
Alexander Weiss 2018-05-27 15:26:22 +02:00 committed by Michael Lutz
parent a6300fe70b
commit 3e910a5969
1 changed files with 6 additions and 0 deletions

View File

@ -214,6 +214,12 @@ static void setupApplication()
}
#endif
/* Disable the system-wide tab feature as we only have one window. */
if ([ NSWindow respondsToSelector:@selector(setAllowsAutomaticWindowTabbing:) ]) {
/* We use nil instead of NO as withObject requires an id. */
[ NSWindow performSelector:@selector(setAllowsAutomaticWindowTabbing:) withObject:nil];
}
/* Become the front process, important when start from the command line. */
[ [ NSApplication sharedApplication ] activateIgnoringOtherApps:YES ];