From eaea02c71ae15d86bb83518796775b6c3c77b71e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 31 Jan 2015 10:35:26 +0200 Subject: [PATCH] Fix while-no-input loops (Bug#19547) src/keyboard.c (kbd_buffer_store_event_hold): Ignore FOCUS_OUT_EVENT and ICONIFY_EVENT for the purposes of breaking while-no-input loops. --- src/ChangeLog | 4 ++++ src/keyboard.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index fd211304ac5..61d1067750a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2015-01-31 Eli Zaretskii + * keyboard.c (kbd_buffer_store_event_hold): Ignore FOCUS_OUT_EVENT + and ICONIFY_EVENT for the purposes of breaking while-no-input + loops. (Bug#19547) + * dired.c (read_dirent): Correct the "MSDOS hacks" hack: the special code for errno = ENOENT or EACCES is needed for WINDOWSNT, not for MSDOS. diff --git a/src/keyboard.c b/src/keyboard.c index 383c109c446..7718f8efa7b 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3639,7 +3639,9 @@ kbd_buffer_store_event_hold (register struct input_event *event, as input, set quit-flag to cause an interrupt. */ if (!NILP (Vthrow_on_input) && event->kind != FOCUS_IN_EVENT + && event->kind != FOCUS_OUT_EVENT && event->kind != HELP_EVENT + && event->kind != ICONIFY_EVENT && event->kind != DEICONIFY_EVENT) { Vquit_flag = Vthrow_on_input; -- 2.39.5