Skip to content

Commit

Permalink
Merge pull request #237 from vladimmi/issue-233
Browse files Browse the repository at this point in the history
Updated Windows event loop to use `QS_ALLINPUT`
  • Loading branch information
s-ludwig authored Mar 26, 2024
2 parents 7dff30a + 76b5667 commit 515edf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/eventcore/drivers/winapi/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 515edf9

Please sign in to comment.