Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLFW_MAXIMIZED hint not working correctly #780

Closed
dougbinks opened this issue Jun 8, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@dougbinks
Copy link
Contributor

commented Jun 8, 2016

On Windows the GLFW_MAXIMIZED hint does not always work - whilst it works reliably when the app is launched from a console or via an IDE double clicking the exe in Explorer results in a normal sized window. However, calling glfwMaximizeWindow(window) after window creation works correctly.

This has been tested on the example boing as well as other code, issue first reported on the glfw forum by user luis.

@elmindreda elmindreda self-assigned this Jun 8, 2016

@elmindreda elmindreda added this to the 3.3 milestone Jun 8, 2016

@elmindreda elmindreda changed the title GLFW_MAXIMIZED not working correctly on Windows GLFW_MAXIMIZED hint not working correctly Jun 8, 2016

@elmindreda

This comment has been minimized.

Copy link
Member

commented Jul 12, 2016

Successfully reproduced on Windows 7.

@elmindreda

This comment has been minimized.

Copy link
Member

commented Jul 12, 2016

So the easiest fix I can think of is to do

ShowWindow(_glfw.win32.helperWindowHandle, SW_HIDE);

at init to make subsequent calls ignore the STARTUPINFO without workarounds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.