summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 11b02f1726e..f6168243a49 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -7628,6 +7628,14 @@ not_in_argv (NSString *arg)
selector:@selector (viewDidResize:)
name:NSViewFrameDidChangeNotification object:nil];
+ /* macOS Sierra automatically enables tabbed windows. We can't
+ allow this to be enabled until it's available on a Free system.
+ Currently it only happens by accident and is buggy anyway. */
+#ifdef NS_IMPL_COCOA
+ if ([win respondsToSelector: @selector(setTabbingMode:)])
+ [win setTabbingMode: NSWindowTabbingModeDisallowed];
+#endif
+
ns_window_num++;
return self;
}