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
This commit is contained in:
Camilla Löwy
2023-11-15 17:55:07 +01:00
parent 01d7c331fd
commit 509f4131be
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -2121,7 +2121,7 @@ void _glfwWaitEventsWin32(void)
void _glfwWaitEventsTimeoutWin32(double timeout)
{
MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeout * 1e3), QS_ALLEVENTS);
MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeout * 1e3), QS_ALLINPUT);
_glfwPollEventsWin32();
}