aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1996-11-11 23:25:46 +0000
committerRichard M. Stallman <[email protected]>1996-11-11 23:25:46 +0000
commit07d402c8dbd99e2da1c365d26ce2b3f18a3a4a2b (patch)
tree2006d8b0f01abd729a0d9ecd349608194ea148fd
parent488a0b059bc6535cf7bf7b90637badd1ab210a55 (diff)
(choose_minibuf_frame): Don't change selected_frame's
selected window even if it is a minibuffer window, if it is active.
-rw-r--r--src/minibuf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 4dafde98dc..f99bffdf55 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -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)
- if (MINI_WINDOW_P (XWINDOW (FRAME_SELECTED_WINDOW (XFRAME (frame)))))
+ if (MINI_WINDOW_P (XWINDOW (FRAME_SELECTED_WINDOW (XFRAME (frame))))
+ && !(XFRAME (frame) == selected_frame
+ && minibuf_level > 0))
Fset_frame_selected_window (frame, Fframe_first_window (frame));
}
}