diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-07-25 20:23:50 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-07-25 20:23:50 +0000 |
commit | a1afb609cf040a8f08da05bafa6a758ea0313f1b (patch) | |
tree | aaf1a52154c5058d033171eb9cf7c34617e33428 /src/keyboard.c | |
parent | 09cd346c78cb3e344257a7000bf1628b22b95af5 (diff) | |
download | emacs-a1afb609cf040a8f08da05bafa6a758ea0313f1b.tar.gz |
(kbd_buffer_get_event) [USE_X_TOOLKIT]:
Handle menu_bar_activate_event by calling x_activate_menubar.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r-- | src/keyboard.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 5189cf58f07..f1181188103 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -2611,6 +2611,13 @@ kbd_buffer_get_event (kbp, used_mouse_menu) XSETBUFFER (obj, current_buffer); kbd_fetch_ptr = event + 1; } +#ifdef USE_X_TOOLKIT + else if (event->kind == menu_bar_activate_event) + { + kbd_fetch_ptr = event + 1; + x_activate_menubar (XFRAME (event->frame_or_window)); + } +#endif /* Just discard these, by returning nil. With MULTI_KBOARD, these events are used as placeholders when we need to randomly delete events from the queue. |