This commit is contained in:
Luiz Gustavo Gomes Monclar 2019-04-20 13:29:45 +00:00 committed by GitHub
commit 3ab56b09bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ information on what to include when reporting a bug.
## Changelog
User-visible changes since the last release.
* [Win32] Bugfix: Worker threads are now able to correctly detect if the GLFW window has focus by getting the `GLFW_FOCUSED` attribute.
## Contact

View File

@ -1788,7 +1788,7 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
int _glfwPlatformWindowFocused(_GLFWwindow* window)
{
return window->win32.handle == GetActiveWindow();
return window->win32.handle == GetForegroundWindow();
}
int _glfwPlatformWindowIconified(_GLFWwindow* window)