mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 05:36:35 +00:00
Replace 'GetActiveWindow()' calls with 'GetForegroundWindow()' for the win32 platform
This commit is contained in:
parent
a337c56848
commit
cbd0e93d0f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user