]> git.eshelyaron.com Git - emacs.git/commitdiff
(prepare_menu_bars): Conditionalize previous change.
authorRichard M. Stallman <rms@gnu.org>
Thu, 1 Aug 1996 21:38:20 +0000 (21:38 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 1 Aug 1996 21:38:20 +0000 (21:38 +0000)
src/xdisp.c

index 5b1b9e24a7a0360c5278daa1003ef8be83c9b826..d01775f5e222c1c29696a40e67468f6359c3d74d 100644 (file)
@@ -39,6 +39,7 @@ Boston, MA 02111-1307, USA.  */
 
 #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI)
 extern void set_frame_menubar ();
+extern int pending_menu_activation;
 #endif
 
 extern int interrupt_input;
@@ -777,6 +778,12 @@ prepare_menu_bars ()
     }
   else
     update_menu_bar (selected_frame, 1);
+
+  /* Motif needs this.  See comment in xmenu.c.
+     Turn it off when pending_menu_activation is not defined.  */
+#ifdef USE_X_TOOLKIT
+  pending_menu_activation = 0;
+#endif
 }
 \f
 /* Do a frame update, taking possible shortcuts into account.