Mercurial > emacs
changeset 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 | 228b881931ef |
children | 774b8a83fb8d |
files | src/keyboard.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
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 ();