Win32: Fix glfwWaitEventsTimeout ignoring messages

The bitmask passed to MsgWaitForMultipleObjects was missing
QS_SENDMESSAGE, causing glfwWaitEventsTimeout not to return when the
thread received messages sent from other threads.

Fixes #2408

(cherry picked from commit 509f4131be)
This commit is contained in:
Camilla Löwy
2023-11-15 17:55:07 +01:00
parent ff156743ab
commit 89bea58b18
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -2113,7 +2113,7 @@ void _glfwPlatformWaitEvents(void)
void _glfwPlatformWaitEventsTimeout(double timeout)
{
MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeout * 1e3), QS_ALLEVENTS);
MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeout * 1e3), QS_ALLINPUT);
_glfwPlatformPollEvents();
}