Wake the WIN32 loop from all input
This commit is contained in:
parent
976a317293
commit
abf162c0e3
|
@ -54,7 +54,7 @@ void Win32Loop::ThreadMain() {
|
||||||
MSG msg;
|
MSG msg;
|
||||||
while (!should_exit_) {
|
while (!should_exit_) {
|
||||||
DWORD result =
|
DWORD result =
|
||||||
MsgWaitForMultipleObjectsEx(0, nullptr, INFINITE, QS_ALLEVENTS, 0);
|
MsgWaitForMultipleObjectsEx(0, nullptr, INFINITE, QS_ALLINPUT, 0);
|
||||||
|
|
||||||
if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
|
if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
|
||||||
TranslateMessage(&msg);
|
TranslateMessage(&msg);
|
||||||
|
|
Loading…
Reference in New Issue