]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't set the selected window to the miniwindow on a frame change.
authorAlan Mackenzie <acm@muc.de>
Sun, 8 Nov 2020 13:28:55 +0000 (13:28 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 8 Nov 2020 13:28:55 +0000 (13:28 +0000)
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

index 068086ead82b219880bd27ff4c8a2cf72de31836..8c19559b087666c5c66c417483ec7c92bcee1780 100644 (file)
@@ -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);
     }
 }