From: Richard M. Stallman Date: Tue, 25 Jul 1995 20:23:50 +0000 (+0000) Subject: (kbd_buffer_get_event) [USE_X_TOOLKIT]: X-Git-Tag: emacs-19.34~3200 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=099787c1f18320df702614627ab3e47b86a45e2a;p=emacs.git (kbd_buffer_get_event) [USE_X_TOOLKIT]: Handle menu_bar_activate_event by calling x_activate_menubar. --- 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.