Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
GLFW_MAXIMIZED hint not working on Windows in version 3.3 #1499
Reported on our forums in post Maximising Window differences from 3.2 to 3.3 .
I have confirmed the issue and have a fix in testing which I'll create a PR for shortly, however this turns out to be a slightly complex and subtle area.
When the window hint GLFW_MAXIMIZED is set to GLFW_TRUE and a window is created it appears with maximized style but not with a maximized size.
It should instead appear maximized as well as in the maximized style.
Related to issue #780.
The simplest solution I can see is to alter _glfwPlatformShowWindow() to:
Currently this means any maximized window would then be focused, as SW_MAXIMIZE will activate the window and there is no maximize without activate option that I can see. This makes sense as a newly created maximized window would cover all other windows.