]> code.delx.au - gnu-emacs/commitdiff
Update frame title when redisplay scrolls selected window
authorEli Zaretskii <eliz@gnu.org>
Sat, 24 Oct 2015 15:54:15 +0000 (18:54 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 24 Oct 2015 15:54:15 +0000 (18:54 +0300)
* 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

index 057671246e3ef80ca4feb273c65819a82a892c5f..bdf2d09179e05f4b3dd3046d1a53fc73c5c5bbf6 100644 (file)
@@ -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
     }