aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index c398a85684d..538c0a0d1b0 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3995,6 +3995,12 @@ kbd_buffer_get_event (kbp, used_mouse_menu, end_time)
3995 /* Wait until there is input available. */ 3995 /* Wait until there is input available. */
3996 for (;;) 3996 for (;;)
3997 { 3997 {
3998 /* Break loop if there's an unread command event. Needed in
3999 moused window autoselection which uses a timer to insert such
4000 events. */
4001 if (CONSP (Vunread_command_events))
4002 break;
4003
3998 if (kbd_fetch_ptr != kbd_store_ptr) 4004 if (kbd_fetch_ptr != kbd_store_ptr)
3999 break; 4005 break;
4000#ifdef HAVE_MOUSE 4006#ifdef HAVE_MOUSE