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
+4
View File
@@ -319,6 +319,10 @@ static HWND createHelperWindow(void)
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
{
DEV_BROADCAST_DEVICEINTERFACE_W dbi;