changeset 12659:1243af8addb5

(kbd_buffer_get_event) [USE_X_TOOLKIT]: Handle menu_bar_activate_event by calling x_activate_menubar.
author Richard M. Stallman <rms@gnu.org>
date Tue, 25 Jul 1995 20:23:50 +0000
parents dd26c4fb9999
children 8b9633307acc
files src/keyboard.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Tue Jul 25 20:21:15 1995 +0000
+++ b/src/keyboard.c	Tue Jul 25 20:23:50 1995 +0000
@@ -2611,6 +2611,13 @@
 	  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.