diff options
| -rw-r--r-- | src/minibuf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 4dafde98dc3..f99bffdf556 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -128,12 +128,15 @@ choose_minibuf_frame () | |||
| 128 | 128 | ||
| 129 | /* Make sure no other frame has a minibuffer as its selected window, | 129 | /* Make sure no other frame has a minibuffer as its selected window, |
| 130 | because the text would not be displayed in it, and that would be | 130 | because the text would not be displayed in it, and that would be |
| 131 | confusing. */ | 131 | confusing. Only allow the selected frame to do this, |
| 132 | and that only if the minibuffer is active. */ | ||
| 132 | { | 133 | { |
| 133 | Lisp_Object tail, frame; | 134 | Lisp_Object tail, frame; |
| 134 | 135 | ||
| 135 | FOR_EACH_FRAME (tail, frame) | 136 | FOR_EACH_FRAME (tail, frame) |
| 136 | if (MINI_WINDOW_P (XWINDOW (FRAME_SELECTED_WINDOW (XFRAME (frame))))) | 137 | if (MINI_WINDOW_P (XWINDOW (FRAME_SELECTED_WINDOW (XFRAME (frame)))) |
| 138 | && !(XFRAME (frame) == selected_frame | ||
| 139 | && minibuf_level > 0)) | ||
| 137 | Fset_frame_selected_window (frame, Fframe_first_window (frame)); | 140 | Fset_frame_selected_window (frame, Fframe_first_window (frame)); |
| 138 | } | 141 | } |
| 139 | } | 142 | } |