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 | 099787c1f18320df702614627ab3e47b86a45e2a (patch) | |
| tree | 07b16a5423a81f9de2dc2827e12cf14016dc7eba /src | |
| parent | 51057b1fa48a6b116f4a2e79cc910073a4be9f6e (diff) | |
| download | emacs-099787c1f18320df702614627ab3e47b86a45e2a.tar.gz | |
(kbd_buffer_get_event) [USE_X_TOOLKIT]:
Handle menu_bar_activate_event by calling x_activate_menubar.
Diffstat (limited to 'src')
| -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. |
