From cfe8a73cab5e7a9c6a6fcc212bd9df980f233895 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sun, 8 Nov 2020 13:28:55 +0000 Subject: [PATCH] Don't set the selected window to the miniwindow on a frame change. Intended to fix bug #44502. * src/minibuf.c (move_minibuffer_onto_frame): Remove the lines of code which set the selected window to the minibuffer. --- src/minibuf.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/minibuf.c b/src/minibuf.c index 068086ead82..8c19559b087 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -142,10 +142,6 @@ void move_minibuffer_onto_frame (void) set_window_buffer (sf->minibuffer_window, buffer, 0, 0); minibuf_window = sf->minibuffer_window; - if (EQ (XWINDOW (minibuf_window)->frame, selected_frame)) - /* The minibuffer might be on another frame. */ - Fset_frame_selected_window (selected_frame, sf->minibuffer_window, - Qnil); set_window_buffer (of->minibuffer_window, get_minibuffer (0), 0, 0); } } -- 2.39.2