Commit 07d402c8 authored by Richard M. Stallman's avatar Richard M. Stallman

(choose_minibuf_frame): Don't change selected_frame's

selected window even if it is a minibuffer window, if it is active.
parent 488a0b05
......@@ -128,12 +128,15 @@ choose_minibuf_frame ()
/* Make sure no other frame has a minibuffer as its selected window,
because the text would not be displayed in it, and that would be
confusing. */
confusing. Only allow the selected frame to do this,
and that only if the minibuffer is active. */
Lisp_Object tail, frame;
FOR_EACH_FRAME (tail, frame)
&& !(XFRAME (frame) == selected_frame
&& minibuf_level > 0))
Fset_frame_selected_window (frame, Fframe_first_window (frame));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment