# HG changeset patch # User Richard M. Stallman # Date 797300368 0 # Node ID 0340dba1df7ea0318ac34be7e0cc62c8ba27a940 # Parent 4bfe7ca7e1f960f6f5cdd17b9c6340e4865a57c9 (prepare_menu_bars): Do the frame titles last. diff -r 4bfe7ca7e1f9 -r 0340dba1df7e src/xdisp.c --- a/src/xdisp.c Sat Apr 08 00:01:20 1995 +0000 +++ b/src/xdisp.c Sat Apr 08 00:19:28 1995 +0000 @@ -680,18 +680,6 @@ all_windows = (update_mode_lines || buffer_shared > 1 || clip_changed || windows_or_buffers_changed); -#ifdef HAVE_X_WINDOWS - if (windows_or_buffers_changed) - { - Lisp_Object tail, frame; - - FOR_EACH_FRAME (tail, frame) - if (FRAME_VISIBLE_P (XFRAME (frame)) - || FRAME_ICONIFIED_P (XFRAME (frame))) - x_consider_frame_title (frame); - } -#endif - /* Update the menu bar item lists, if appropriate. This has to be done before any actual redisplay or generation of display lines. */ @@ -723,6 +711,22 @@ } else update_menu_bar (selected_frame); + + /* Update all frame titles based on their buffer names, etc. + We do this after the menu bars so that the frame will first + create its menu bar using the name `emacs' if no other name + has yet been specified. */ +#ifdef HAVE_X_WINDOWS + if (windows_or_buffers_changed) + { + Lisp_Object tail, frame; + + FOR_EACH_FRAME (tail, frame) + if (FRAME_VISIBLE_P (XFRAME (frame)) + || FRAME_ICONIFIED_P (XFRAME (frame))) + x_consider_frame_title (frame); + } +#endif } /* Do a frame update, taking possible shortcuts into account.