Commit 5da11938 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(redisplay_window): Really switch buffers when

displaying mode lines, and temporarily set selected_frame to the
frame of the window that's redisplayed.
parent d0bca3c9
...@@ -9201,7 +9201,20 @@ redisplay_window (window, just_this_one_p) ...@@ -9201,7 +9201,20 @@ redisplay_window (window, just_this_one_p)
&& (WINDOW_WANTS_MODELINE_P (w) && (WINDOW_WANTS_MODELINE_P (w)
|| WINDOW_WANTS_HEADER_LINE_P (w))) || WINDOW_WANTS_HEADER_LINE_P (w)))
{ {
Lisp_Object old_selected_frame;
old_selected_frame = selected_frame;
if (!really_switched_buffer)
{
set_buffer_temp (old);
set_buffer_internal_1 (XBUFFER (w->buffer));
really_switched_buffer = 1;
}
XSETFRAME (selected_frame, f);
display_mode_lines (w); display_mode_lines (w);
selected_frame = old_selected_frame;
/* If mode line height has changed, arrange for a thorough /* If mode line height has changed, arrange for a thorough
immediate redisplay using the correct mode line height. */ immediate redisplay using the correct mode line height. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment