]> code.delx.au - gnu-emacs/commitdiff
Fix Bug#23207
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 10 Apr 2016 08:07:15 +0000 (10:07 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 10 Apr 2016 08:07:15 +0000 (10:07 +0200)
* src/keyboard.c (read_char): Resume idle timers in case of
dbus-event, file-notify-event and config-changed-event.
Reported by Johan Claesson <johanclaesson@bredband.net>.  (Bug#23207)

src/keyboard.c

index 6c87add5bbefb1fa23b9e214b1c67f274ad62853..92d5c3053a7e826eea35ac0539518cdb3e68d58d 100644 (file)
@@ -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