From: Richard M. Stallman Date: Fri, 1 Jul 1994 15:36:06 +0000 (+0000) Subject: (prepare_menu_bars): Call x_consider_frame_title X-Git-Tag: emacs-19.34~7748 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=de4cdbc5fdb48390e20a9c8495f2733c5ac7fd6d;p=emacs.git (prepare_menu_bars): Call x_consider_frame_title only if windows_or_buffers_changed. --- 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.