changeset 8105:e1958b89aa88

(prepare_menu_bars): Call x_consider_frame_title only if windows_or_buffers_changed.
author Richard M. Stallman <rms@gnu.org>
date Fri, 01 Jul 1994 15:36:06 +0000
parents 5434ea918f34
children ec8291e58762
files src/xdisp.c
diffstat 1 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Jul 01 15:34:42 1994 +0000
+++ b/src/xdisp.c	Fri Jul 01 15:36:06 1994 +0000
@@ -456,14 +456,15 @@
 		 || 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);
-  }
+  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.