glfw icon indicating copy to clipboard operation
glfw copied to clipboard

Disable macOS's automatic window tabbing

Open zaygraveyard opened this issue 6 years ago • 5 comments

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

zaygraveyard avatar Apr 13 '18 12:04 zaygraveyard

You can add NSWindow.allowsAutomaticWindowTabbing = NO; before glfwCreateWindow()

bear24rw avatar Aug 23 '18 06:08 bear24rw

Disabling it for everyone might not be the best thing but it is a better default than YES for portable applications.

elmindreda avatar Jan 17 '19 22:01 elmindreda

Automatic window tabbing has been disabled for our windows only with 530b37f4db964466f327cb567499da234e3bce1e. Postponing the rest of this work until after 3.3.

elmindreda avatar Jan 30 '19 23:01 elmindreda

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.

Luflosi avatar Oct 07 '19 21:10 Luflosi

Can this be changed to a window hint/attribute or other appropriate property? GLFW_COCOA_AUTO_TABBING for instance?

ws909 avatar Dec 30 '22 13:12 ws909