From 7cdd41170b07f67cd43776504e92121e3c8291aa Mon Sep 17 00:00:00 2001 From: FuzzyQuills Date: Tue, 12 Dec 2023 06:25:44 +1000 Subject: [PATCH] Cocoa: No NSWindowStyleMaskResizable in fullscreen On macOS 10.15 Catalina and earlier, not having the resizable bit cleared in NSWindowStyleMask in fullscreen leads to windows minimising when clicked anywhere in the content area. On all tested macOS versions it also causes the fullscreen window to be resizable by the user. Regression introduced by 0d599026d04ddcc2695ae938fc1864523dab7a34. Fixes #2377 Closes #2405 (cherry picked from commit 8e9a5d29a8258d2e82250102db9ae713794be321) --- src/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 449025c1..2d065c35 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -1265,7 +1265,7 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, if (window->monitor) { - styleMask &= ~(NSWindowStyleMaskTitled | NSWindowStyleMaskClosable); + styleMask &= ~(NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskResizable); styleMask |= NSWindowStyleMaskBorderless; } else