macOS: Disable cocoa tabs

kitty has its own tabs, and macOS inserts confusing menu entries for its
non-functional tabs into the global menu. So disable tabs. Fixes #3325
This commit is contained in:
Kovid Goyal
2021-02-25 11:25:04 +05:30
parent dc3ad80d24
commit 78854d4a10
2 changed files with 7 additions and 1 deletions

View File

@@ -1387,7 +1387,10 @@ void _glfwPlatformUpdateIMEState(_GLFWwindow *w, int which, int a, int b, int c,
initWindow:(_GLFWwindow *)initWindow
{
self = [super initWithContentRect:contentRect styleMask:style backing:backingStoreType defer:NO];
if (self != nil) glfw_window = initWindow;
if (self != nil) {
glfw_window = initWindow;
self.tabbingMode = NSWindowTabbingModeDisallowed;
}
return self;
}