From 099787c1f18320df702614627ab3e47b86a45e2a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 25 Jul 1995 20:23:50 +0000 Subject: [PATCH] (kbd_buffer_get_event) [USE_X_TOOLKIT]: Handle menu_bar_activate_event by calling x_activate_menubar. --- src/keyboard.c | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.39.2