From 147a661590391d5afc3f94c55ce2d3bd06251fc7 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 24 Apr 1994 08:34:14 +0000 Subject: [PATCH] (Fselect_window): Use Fselect_frame. --- src/window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/window.c b/src/window.c index a73ad3fce82..b33f3139a1c 100644 --- a/src/window.c +++ b/src/window.c @@ -1668,7 +1668,11 @@ before each command.") if (XFRAME (WINDOW_FRAME (w)) != selected_frame) { XFRAME (WINDOW_FRAME (w))->selected_window = window; - Fhandle_switch_frame (WINDOW_FRAME (w), Qnil); + /* Use this rather than Fhandle_switch_frame + so that FRAME_FOCUS_FRAME is moved appropriately as we + move around in the state where a minibuffer in a separate + frame is active. */ + Fselect_frame (WINDOW_FRAME (w), Qnil); } else selected_frame->selected_window = window; -- 2.39.5