--- a/src/keyboard.c +++ b/src/keyboard.c @@ -1477,7 +1477,9 @@ static int read_key_sequence (Lisp_Object *, Lisp_Object, /* If displaying a message, resize the echo area window to fit that message's size exactly. */ - if (!NILP (echo_area_buffer[0])) + if (!NILP (echo_area_buffer[0]) + && (EQ (echo_area_window, + FRAME_MINIBUF_WINDOW (XFRAME (selected_frame))))) resize_echo_area_exactly (); /* If there are warnings waiting, process them. */