]> git.eshelyaron.com Git - emacs.git/commitdiff
(kbd_buffer_get_event) [USE_X_TOOLKIT]:
authorRichard M. Stallman <rms@gnu.org>
Tue, 25 Jul 1995 20:23:50 +0000 (20:23 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 25 Jul 1995 20:23:50 +0000 (20:23 +0000)
Handle menu_bar_activate_event by calling x_activate_menubar.

src/keyboard.c

index 5189cf58f0798515f80a2dc57011f7c85ac84e23..f1181188103a2f22c24ae3c5c9af624248be83c1 100644 (file)
@@ -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.