From: Michael Albinus Date: Sun, 10 Apr 2016 08:07:15 +0000 (+0200) Subject: Fix Bug#23207 X-Git-Tag: emacs-26.0.90~2230 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7172ba7f7f5b1a91357ea727ab188db3ccc99a77;p=emacs.git 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) --- diff --git a/src/keyboard.c b/src/keyboard.c index 6c87add5bbe..92d5c3053a7 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