diff options
| author | Karl Heuer <kwzh@gnu.org> | 1996-07-16 06:01:13 +0000 |
|---|---|---|
| committer | Karl Heuer <kwzh@gnu.org> | 1996-07-16 06:01:13 +0000 |
| commit | ac78b144414c85b78cca8da3368a81f95656c746 (patch) | |
| tree | 184bb0fbd6520877d9a976e2ecd975feb7d97dee /src/xmenu.c | |
| parent | ff0113e73adc7640f88d6086ecb8afdd08fe9efa (diff) | |
| download | emacs-ac78b144414c85b78cca8da3368a81f95656c746.tar.gz | |
(x_activate_menubar): Allow any event, not just ButtonPress.
Diffstat (limited to 'src/xmenu.c')
| -rw-r--r-- | src/xmenu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 962c3717299..ee78f290225 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1167,7 +1167,7 @@ popup_get_selection (initial_event, dpyinfo, id) 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 @@ popup_get_selection (initial_event, dpyinfo, id) 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. */ |
