From 7172ba7f7f5b1a91357ea727ab188db3ccc99a77 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 10 Apr 2016 10:07:15 +0200 Subject: [PATCH] Fix Bug#23207 * src/keyboard.c (read_char): Resume idle timers in case of dbus-event, file-notify-event and config-changed-event. Reported by Johan Claesson . (Bug#23207) --- src/keyboard.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index 6c87add5bb..92d5c3053a 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -2834,7 +2834,16 @@ read_char (int commandflag, Lisp_Object map, last_input_event = c; call4 (Qcommand_execute, tem, Qnil, Fvector (1, &last_input_event), Qt); - if (CONSP (c) && EQ (XCAR (c), Qselect_window) && !end_time) + if (CONSP (c) + && (EQ (XCAR (c), Qselect_window) +#ifdef HAVE_DBUS + || EQ (XCAR (c), Qdbus_event) +#endif +#ifdef USE_FILE_NOTIFY + || EQ (XCAR (c), Qfile_notify) +#endif + || EQ (XCAR (c), Qconfig_changed_event)) + && !end_time) /* We stopped being idle for this event; undo that. This prevents automatic window selection (under mouse-autoselect-window) from acting as a real input event, for -- 2.39.2