]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay): Don't call x_consider_frame_title.
authorRichard M. Stallman <rms@gnu.org>
Wed, 15 Jun 1994 18:18:55 +0000 (18:18 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 15 Jun 1994 18:18:55 +0000 (18:18 +0000)
(display_mode_line): Likewise.
(prepare_menu_bars): Call it here.

src/xdisp.c

index fa6e0c1493c32b1847330bc153e97f20a23c9b51..da05044a963704b510380ec2d700a5c2cc8acf8d 100644 (file)
@@ -455,6 +455,17 @@ prepare_menu_bars ()
   all_windows = (update_mode_lines || buffer_shared > 1
                 || clip_changed || windows_or_buffers_changed);
 
+#ifdef HAVE_X_WINDOWS
+  {
+    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.  */
@@ -701,11 +712,6 @@ redisplay ()
 
          if (FRAME_VISIBLE_P (f))
            redisplay_windows (FRAME_ROOT_WINDOW (f));
-#ifdef HAVE_X_WINDOWS
-         else if (FRAME_ICONIFIED_P (f)
-                  && ! MINI_WINDOW_P (XWINDOW (f->selected_window)))
-           x_consider_frame_title (frame);
-#endif
 
          /* Any scroll bars which redisplay_windows should have nuked
             should now go away.  */
@@ -2577,11 +2583,6 @@ display_mode_line (w)
        ptr[i] = FAST_MAKE_GLYPH (FAST_GLYPH_CHAR (ptr[i]), 1);
     }
 #endif
-
-#ifdef HAVE_X_WINDOWS
-  if (w == XWINDOW (f->selected_window))
-    x_consider_frame_title (WINDOW_FRAME (w));
-#endif
 }
 
 /* Contribute ELT to the mode line for window W.