From de4cdbc5fdb48390e20a9c8495f2733c5ac7fd6d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 1 Jul 1994 15:36:06 +0000 Subject: [PATCH] (prepare_menu_bars): Call x_consider_frame_title only if windows_or_buffers_changed. --- src/xdisp.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index e241b59e55b..fc9a11a4cc2 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -456,14 +456,15 @@ prepare_menu_bars () || clip_changed || windows_or_buffers_changed); #ifdef HAVE_X_WINDOWS - { - Lisp_Object tail, 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); - } + 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. -- 2.39.5