From 530b37f4db964466f327cb567499da234e3bce1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Fri, 18 Jan 2019 00:41:47 +0100 Subject: [PATCH] Cocoa: Disable automatic tabbing for GLFW windows Related to #1250. --- README.md | 1 + src/cocoa_window.m | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 763550f9..2d818ac3 100644 --- a/README.md +++ b/README.md @@ -262,6 +262,7 @@ information on what to include when reporting a bug. - [Cocoa] Added support for Vulkan window surface creation via [MoltenVK](https://moltengl.com/moltenvk/) (#870) - [Cocoa] Added support for loading a `MainMenu.nib` when available +- [Cocoa] Disabled automatic window tabbing for created windows (#1250) - [Cocoa] Bugfix: Disabling window aspect ratio would assert (#852) - [Cocoa] Bugfix: Window creation failed to set first responder (#876,#883) - [Cocoa] Bugfix: Removed use of deprecated `CGDisplayIOServicePort` function diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 28c7ef59..156b97b1 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -885,6 +885,9 @@ static GLFWbool createNativeWindow(_GLFWwindow* window, [window->ns.object setDelegate:window->ns.delegate]; [window->ns.object setAcceptsMouseMovedEvents:YES]; [window->ns.object setRestorable:NO]; +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 + [window->ns.object setTabbingMode:NSWindowTabbingModeDisallowed]; +#endif _glfwPlatformGetWindowSize(window, &window->ns.width, &window->ns.height); _glfwPlatformGetFramebufferSize(window, &window->ns.fbWidth, &window->ns.fbHeight);