From 906542f2bb9e628c38df73d924db30fae9ca271d Mon Sep 17 00:00:00 2001 From: Luiz Monclar Date: Wed, 17 Apr 2019 02:33:49 -0300 Subject: [PATCH] Revert the replacement in the '_glfwPlatformPollEvents' function, as it could wrongfully read inputs from other windows --- src/win32_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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