changeset 16564:83d580ba04cf

(choose_minibuf_frame): Don't change selected_frame's selected window even if it is a minibuffer window, if it is active.
author Richard M. Stallman <rms@gnu.org>
date Mon, 11 Nov 1996 23:25:46 +0000
parents 41bbec0cc4c6
children 0bef6ef9964b
files src/minibuf.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/minibuf.c	Mon Nov 11 20:42:08 1996 +0000
+++ b/src/minibuf.c	Mon Nov 11 23:25:46 1996 +0000
@@ -128,12 +128,15 @@
 
   /* 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));
   }
 }