diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index b8296f1c9..b1c0b2b10 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -1845,6 +1845,8 @@ void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) } else { + // Disable window resizing in fullscreen. + if ([window->ns.object styleMask] & NSWindowStyleMaskFullScreen || window->ns.in_traditional_fullscreen) return; NSRect contentRect = [window->ns.object contentRectForFrameRect:[window->ns.object frame]]; contentRect.origin.y += contentRect.size.height - height;