diff src/keyboard.c @ 44338:b6b565886e78

(read_char): If the event was Qselect_window, restore timer_idleness_start_time to its previous value.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 02 Apr 2002 15:53:14 +0000
parents 21286349d285
children 4c66bc116ca9
line wrap: on
line diff
--- a/src/keyboard.c	Tue Apr 02 15:52:35 2002 +0000
+++ b/src/keyboard.c	Tue Apr 02 15:53:14 2002 +0000
@@ -2690,6 +2690,13 @@
       last_input_char = c;
       Fcommand_execute (tem, Qnil, Fvector (1, &last_input_char), Qt);
 
+      if (CONSP (c) && EQ (XCAR (c), Qselect_window))
+	/* We stopped being idle for this event; undo that.  This
+	   prevents automatic window selection (under
+	   autoselect_window_p from acting as a real input event, for
+	   example banishing the mouse under mouse-avoidance-mode.  */
+	timer_idleness_start_time = last_idle_start;
+
       /* Resume allowing input from any kboard, if that was true before.  */
       if (!was_locked)
 	any_kboard_state ();