diff --git a/src/win32_window.c b/src/win32_window.c index 228585e9d..d6c28fb9c 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1918,7 +1918,7 @@ void _glfwPlatformPollEvents(void) } } - handle = GetForegroundWindow(); + handle = GetActiveWindow(); if (handle) { // NOTE: Shift keys on Windows tend to "stick" when both are pressed as