diff --git a/source/terml_windows.cpp b/source/terml_windows.cpp index c2d4874..69fc54e 100644 --- a/source/terml_windows.cpp +++ b/source/terml_windows.cpp @@ -93,6 +93,10 @@ void terml_windows::process_events() } } + if (num_events_read >= num_events_available) + { + return; + } num_events_available -= num_events_read; } }