Replace 'GetActiveWindow()' calls with 'GetForegroundWindow()' for the win32 platform

This commit is contained in:
Luiz Monclar 2019-04-17 01:51:24 -03:00
parent a337c56848
commit cbd0e93d0f

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)
@ -1918,7 +1918,7 @@ void _glfwPlatformPollEvents(void)
}
}
handle = GetActiveWindow();
handle = GetForegroundWindow();
if (handle)
{
// NOTE: Shift keys on Windows tend to "stick" when both are pressed as