1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 07:07:25 -04:00

Win32: Fix GLFW_MAXIMIZED ignored by first window

Fixes #780.
This commit is contained in:
Camilla Berglund 2016-07-12 16:04:02 +02:00
parent 18b6ba0af4
commit 0ff22e4a49
2 changed files with 6 additions and 0 deletions

View File

@ -81,6 +81,8 @@ does not find Doxygen, the documentation will not be generated.
## Changelog ## Changelog
- Bugfix: The range checks for `glfwSetCursorPos` used the wrong minimum - Bugfix: The range checks for `glfwSetCursorPos` used the wrong minimum
- [Win32] Bugfix: The first shown window ignored the `GLFW_MAXIMIZED` hint
when the process was provided a `STARTUPINFO`
## Contact ## Contact

View File

@ -319,6 +319,10 @@ static HWND createHelperWindow(void)
return NULL; return NULL;
} }
// HACK: The first call to ShowWindow is ignored if the parent process
// passed along a STARTUPINFO, so clear that flag with a no-op call
ShowWindow(window, SW_HIDE);
// Register for HID device notifications // Register for HID device notifications
{ {
DEV_BROADCAST_DEVICEINTERFACE_W dbi; DEV_BROADCAST_DEVICEINTERFACE_W dbi;