From 2bb07400c9d0f4c796f8e213c733debe8cafe7aa Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 21 Jul 1995 07:50:21 +0000 Subject: [PATCH] (do_switch_frame): Don't call choose_minibuffer_frame. (choose_minibuf_frame): Choose frame regardless of minibuffer level. --- src/frame.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/frame.c b/src/frame.c index 382fa0b98a5..3c1a61ec29e 100644 --- a/src/frame.c +++ b/src/frame.c @@ -488,7 +488,6 @@ do_switch_frame (frame, no_enter, track) last_nonminibuf_frame = selected_frame; Fselect_window (XFRAME (frame)->selected_window); - choose_minibuf_frame (); /* We want to make sure that the next event generates a frame-switch event to the appropriate frame. This seems kludgy to me, but @@ -1875,13 +1874,13 @@ the rightmost or bottommost possible position (that stays within the screen).") } +/* Put minibuf on currently selected frame's minibuffer. + We do this whenever the user starts a new minibuffer + or when a minibuffer exits. */ + choose_minibuf_frame () { - /* For lowest-level minibuf, put it on currently selected frame - if frame has a minibuffer. */ - - if (minibuf_level == 0 - && selected_frame != 0 + if (selected_frame != 0 && !EQ (minibuf_window, selected_frame->minibuffer_window)) { /* I don't think that any frames may validly have a null minibuffer -- 2.39.2