aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 5b1b9e24a7a..d01775f5e22 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -39,6 +39,7 @@ Boston, MA 02111-1307, USA. */
39 39
40#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) 40#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI)
41extern void set_frame_menubar (); 41extern void set_frame_menubar ();
42extern int pending_menu_activation;
42#endif 43#endif
43 44
44extern int interrupt_input; 45extern int interrupt_input;
@@ -777,6 +778,12 @@ prepare_menu_bars ()
777 } 778 }
778 else 779 else
779 update_menu_bar (selected_frame, 1); 780 update_menu_bar (selected_frame, 1);
781
782 /* Motif needs this. See comment in xmenu.c.
783 Turn it off when pending_menu_activation is not defined. */
784#ifdef USE_X_TOOLKIT
785 pending_menu_activation = 0;
786#endif
780} 787}
781 788
782/* Do a frame update, taking possible shortcuts into account. 789/* Do a frame update, taking possible shortcuts into account.