Commit 15d81484 authored by Martin Rudalics's avatar Martin Rudalics
Browse files

(kbd_buffer_get_event): Break loop waiting for input

when there's an unread command event.
parent f5578c7f
......@@ -3995,6 +3995,12 @@ kbd_buffer_get_event (kbp, used_mouse_menu, end_time)
/* Wait until there is input available. */
for (;;)
{
/* Break loop if there's an unread command event. Needed in
moused window autoselection which uses a timer to insert such
events. */
if (CONSP (Vunread_command_events))
break;
if (kbd_fetch_ptr != kbd_store_ptr)
break;
#ifdef HAVE_MOUSE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment