From 76b5667f0561b91801d9bc668978b37b9a607b2a Mon Sep 17 00:00:00 2001 From: Vladimir Marchevsky Date: Mon, 25 Mar 2024 15:48:28 +0300 Subject: [PATCH] Updated Windows event loop to use `QS_ALLINPUT` --- source/eventcore/drivers/winapi/core.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/eventcore/drivers/winapi/core.d b/source/eventcore/drivers/winapi/core.d index afdc93a..2615663 100644 --- a/source/eventcore/drivers/winapi/core.d +++ b/source/eventcore/drivers/winapi/core.d @@ -199,7 +199,7 @@ final class WinAPIEventDriverCore : EventDriverCore { DWORD timeout_msecs = max_wait == Duration.max ? INFINITE : cast(DWORD)min(max(max_wait.total!"msecs", 0), DWORD.max); auto ret = () @trusted { return MsgWaitForMultipleObjectsEx(m_registeredEventCount, m_registeredEvents.ptr, - timeout_msecs, QS_ALLEVENTS, MWMO_ALERTABLE|MWMO_INPUTAVAILABLE); } (); + timeout_msecs, QS_ALLINPUT, MWMO_ALERTABLE|MWMO_INPUTAVAILABLE); } (); while (!m_ioEvents.empty) { auto evt = m_ioEvents.consumeOne();