From 9d6ec23f7d4f8fbbfdcea353c4b58e47f76a7342 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 24 Oct 2015 18:54:15 +0300 Subject: [PATCH] Update frame title when redisplay scrolls selected window * src/xdisp.c (redisplay_window): Reconsider the frame's title when the mode-line of the frame's selected window needs to be updated. --- src/xdisp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 057671246e3..bdf2d09179e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -16854,7 +16854,8 @@ redisplay_window (Lisp_Object window, bool just_this_one_p) finish_menu_bars: - /* When we reach a frame's selected window, redo the frame's menu bar. */ + /* When we reach a frame's selected window, redo the frame's menu + bar and the frame's title. */ if (update_mode_line && EQ (FRAME_SELECTED_WINDOW (f), window)) { @@ -16889,6 +16890,7 @@ redisplay_window (Lisp_Object window, bool just_this_one_p) ignore_mouse_drag_p = true; #endif } + x_consider_frame_title (w->frame); #endif } -- 2.39.5