From 3e910a59699b0e337b9e7fbf29ceb1cdfc921ff5 Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Sun, 27 May 2018 15:26:22 +0200 Subject: [PATCH] Change: [OSX] Disable macOS Sierra's automatic tab feature --- src/video/cocoa/cocoa_v.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm index f8412e3877..d165610245 100644 --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -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 ];