aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-08 00:19:28 +0000
committerRichard M. Stallman1995-04-08 00:19:28 +0000
commitab2f96f8227a27f923b252a566b3f3d6200e8365 (patch)
tree5ee749b5b306ccf6cee08a18d472ed2168eb9562 /src
parenta4f069b067570a4f2954bf981fe596229b322029 (diff)
downloademacs-ab2f96f8227a27f923b252a566b3f3d6200e8365.tar.gz
emacs-ab2f96f8227a27f923b252a566b3f3d6200e8365.zip
(prepare_menu_bars): Do the frame titles last.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 02c71203b1d..833f9083511 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -680,18 +680,6 @@ prepare_menu_bars ()
680 all_windows = (update_mode_lines || buffer_shared > 1 680 all_windows = (update_mode_lines || buffer_shared > 1
681 || clip_changed || windows_or_buffers_changed); 681 || clip_changed || windows_or_buffers_changed);
682 682
683#ifdef HAVE_X_WINDOWS
684 if (windows_or_buffers_changed)
685 {
686 Lisp_Object tail, frame;
687
688 FOR_EACH_FRAME (tail, frame)
689 if (FRAME_VISIBLE_P (XFRAME (frame))
690 || FRAME_ICONIFIED_P (XFRAME (frame)))
691 x_consider_frame_title (frame);
692 }
693#endif
694
695 /* Update the menu bar item lists, if appropriate. 683 /* Update the menu bar item lists, if appropriate.
696 This has to be done before any actual redisplay 684 This has to be done before any actual redisplay
697 or generation of display lines. */ 685 or generation of display lines. */
@@ -723,6 +711,22 @@ prepare_menu_bars ()
723 } 711 }
724 else 712 else
725 update_menu_bar (selected_frame); 713 update_menu_bar (selected_frame);
714
715 /* Update all frame titles based on their buffer names, etc.
716 We do this after the menu bars so that the frame will first
717 create its menu bar using the name `emacs' if no other name
718 has yet been specified. */
719#ifdef HAVE_X_WINDOWS
720 if (windows_or_buffers_changed)
721 {
722 Lisp_Object tail, frame;
723
724 FOR_EACH_FRAME (tail, frame)
725 if (FRAME_VISIBLE_P (XFRAME (frame))
726 || FRAME_ICONIFIED_P (XFRAME (frame)))
727 x_consider_frame_title (frame);
728 }
729#endif
726} 730}
727 731
728/* Do a frame update, taking possible shortcuts into account. 732/* Do a frame update, taking possible shortcuts into account.