Added style WS_VISIBLE to fix focus issue.

Fixes #313.
This commit is contained in:
Doug Binks 2014-06-24 17:32:33 +02:00 committed by Camilla Berglund
parent 9705113529
commit ec971959cc

View File

@ -1219,7 +1219,7 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
window->win32.dwExStyle = getWindowExStyle(&wndconfig);
SetWindowLongPtr(window->win32.handle,
GWL_STYLE, window->win32.dwStyle);
GWL_STYLE, window->win32.dwStyle | WS_VISIBLE);
SetWindowLongPtr(window->win32.handle,
GWL_EXSTYLE, window->win32.dwExStyle);
}