macOS: Prevent resizing of fullscreen OS windows as it leads to visual artifacts
This commit is contained in:
parent
4604558d35
commit
0a4dfa8fd2
@ -1845,6 +1845,8 @@ void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Disable window resizing in fullscreen.
|
||||||
|
if ([window->ns.object styleMask] & NSWindowStyleMaskFullScreen || window->ns.in_traditional_fullscreen) return;
|
||||||
NSRect contentRect =
|
NSRect contentRect =
|
||||||
[window->ns.object contentRectForFrameRect:[window->ns.object frame]];
|
[window->ns.object contentRectForFrameRect:[window->ns.object frame]];
|
||||||
contentRect.origin.y += contentRect.size.height - height;
|
contentRect.origin.y += contentRect.size.height - height;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user