glfw
glfw copied to clipboard
Disable macOS's automatic window tabbing
First of, thank you for the amazing library :clap:.
As apps that use GLFW usually (always?) have a single window, it would be nice if it's possible to either disable automatic window tabbing in general or have an option to disable it.
Automatic window tabbing can be disabled by setting NSWindow
's allowsAutomaticWindowTabbing
property to NO
.
Disabling it globally can be done in the constructor of the GLFWWindow
in: https://github.com/glfw/glfw/blob/23dfeee4cb4fac69f0b1f3614c4305e2129cf43b/src/cocoa_window.m#L826-L839
You can add NSWindow.allowsAutomaticWindowTabbing = NO;
before glfwCreateWindow()
Disabling it for everyone might not be the best thing but it is a better default than YES for portable applications.
Automatic window tabbing has been disabled for our windows only with 530b37f4db964466f327cb567499da234e3bce1e. Postponing the rest of this work until after 3.3.
As apps that use GLFW usually (always?) have a single window
I just wanted to tell you that kitty, a terminal emulator using GLFW, does support multiple windows. So now we have one counter-example.
Can this be changed to a window hint/attribute or other appropriate property? GLFW_COCOA_AUTO_TABBING
for instance?