Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mattn
Created April 1, 2016 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/70305daecfc78a5a82d8fe77416c1a23 to your computer and use it in GitHub Desktop.
Save mattn/70305daecfc78a5a82d8fe77416c1a23 to your computer and use it in GitHub Desktop.
diff --git a/src/gui_w32.c b/src/gui_w32.c
index b2ee9ca..0679ed2 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -2218,7 +2218,7 @@ gui_mch_wait_for_chars(int wtime)
parse_queued_messages();
if (pPeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)
- || MsgWaitForMultipleObjects(0, NULL, FALSE, 100, QS_ALLEVENTS)
+ || MsgWaitForMultipleObjects(0, NULL, FALSE, 100, QS_ALLINPUT)
!= WAIT_TIMEOUT)
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment