summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dispnew.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index c9a94cf37ed..25ac26dd951 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -2367,6 +2367,8 @@ sit_for (sec, usec, reading, display)
{
Lisp_Object read_kbd;
+ swallow_events (display);
+
if (detect_input_pending_run_timers (display))
return Qnil;