# HG changeset patch # User Karl Heuer # Date 837496873 0 # Node ID 85d87cd0f6557b37f6a1fb0eba9f384ae813e769 # Parent 32550876ed0f306e5dd56a2bd990ad1baf4c3a55 (x_activate_menubar): Allow any event, not just ButtonPress. diff -r 32550876ed0f -r 85d87cd0f655 src/xmenu.c --- a/src/xmenu.c Tue Jul 16 05:59:54 1996 +0000 +++ b/src/xmenu.c Tue Jul 16 06:01:13 1996 +0000 @@ -1167,7 +1167,7 @@ menu_bar_activate_event out of the Emacs event queue. To activate the menu bar, we use the X button-press event - that was saved in saved_button_event. + that was saved in saved_menu_event. That makes the toolkit do its thing. But first we recompute the menu bar contents (the whole tree). @@ -1179,17 +1179,17 @@ x_activate_menubar (f) FRAME_PTR f; { - if (f->output_data.x->saved_button_event->type != ButtonPress) + if (!f->output_data.x->saved_menu_event->type) return; set_frame_menubar (f, 0, 1); BLOCK_INPUT; - XtDispatchEvent ((XEvent *) f->output_data.x->saved_button_event); + XtDispatchEvent ((XEvent *) f->output_data.x->saved_menu_event); UNBLOCK_INPUT; /* Ignore this if we get it a second time. */ - f->output_data.x->saved_button_event->type = 0; + f->output_data.x->saved_menu_event->type = 0; } /* Detect if a dialog or menu has been posted. */