changeset 69002:b85178809d5c

(update_menu_bar) [MAC_OS]: Don't set w->update_mode_line if arg F is not the selected frame.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Sun, 19 Feb 2006 07:33:22 +0000
parents 03e41ed4f4d9
children 778b71fe14ef
files src/xdisp.c
diffstat 1 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sun Feb 19 07:33:13 2006 +0000
+++ b/src/xdisp.c	Sun Feb 19 07:33:22 2006 +0000
@@ -9052,14 +9052,15 @@
 	  /* Redisplay the menu bar in case we changed it.  */
 #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) \
     || defined (USE_GTK)
-	  if (FRAME_WINDOW_P (f)
-#if defined (MAC_OS)
-              /* All frames on Mac OS share the same menubar.  So only the
-                 selected frame should be allowed to set it.  */
-              && f == SELECTED_FRAME ()
-#endif
-	     )
-	    set_frame_menubar (f, 0, 0);
+	  if (FRAME_WINDOW_P (f))
+	    {
+#ifdef MAC_OS
+              /* All frames on Mac OS share the same menubar.  So only
+                 the selected frame should be allowed to set it.  */
+              if (f == SELECTED_FRAME ())
+#endif
+		set_frame_menubar (f, 0, 0);
+	    }
 	  else
 	    /* On a terminal screen, the menu bar is an ordinary screen
 	       line, and this makes it get updated.  */