mirror of
https://github.com/glfw/glfw.git
synced 2025-06-07 08:14:57 +00:00
Cocoa: Make sure NSWindowStyleMaskResizable is masked when entering fullscreen.
On macOS Catalina and earlier, not having the resizable bit cleared in NSWindowStyleMask in fullscreen leads to windows minimising when clicked anywhere in the content area. TODO: This bug doesn't seem to occur on macOS Big Sur and later, needs testing on later macOS versions for any regressions. Fixes issue #2377.
This commit is contained in:
parent
3eaf1255b2
commit
2eb6494682
@ -1279,7 +1279,7 @@ void _glfwSetWindowMonitorCocoa(_GLFWwindow* window,
|
||||
|
||||
if (window->monitor)
|
||||
{
|
||||
styleMask &= ~(NSWindowStyleMaskTitled | NSWindowStyleMaskClosable);
|
||||
styleMask &= ~(NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskResizable);
|
||||
styleMask |= NSWindowStyleMaskBorderless;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user