# HG changeset patch # User Eli Zaretskii # Date 1017762794 0 # Node ID b6b565886e78aea671d7feb4eaedc6adef5714d1 # Parent 228b881931ef8ea77f54d651d64c65c67c8be882 (read_char): If the event was Qselect_window, restore timer_idleness_start_time to its previous value. diff -r 228b881931ef -r b6b565886e78 src/keyboard.c --- 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 ();