]> git.eshelyaron.com Git - emacs.git/commitdiff
(make_lispy_event): Ignore menu bar up events.
authorRichard M. Stallman <rms@gnu.org>
Thu, 7 Jul 1994 06:42:21 +0000 (06:42 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 7 Jul 1994 06:42:21 +0000 (06:42 +0000)
src/keyboard.c

index 381d8ff48044d63cc125525870018a080ba43aa9..a93fa224861d40a3cae17614702ae5b502137c32 100644 (file)
@@ -2608,6 +2608,14 @@ make_lispy_event (event)
 #endif
              {
                Lisp_Object items, item;
+               int hpos;
+               int i;
+
+               /* Activate the menu bar on the down event.  If the
+                  up event comes in before the menu code can deal with it,
+                  just ignore it.  */
+               if (! (event->modifiers & down_modifier))
+                 return Qnil;
 
 #ifdef USE_X_TOOLKIT
                /* The click happened in the menubar.
@@ -2616,9 +2624,6 @@ make_lispy_event (event)
 
                XFASTINT (event->y) = 1;
 #else /* not USE_X_TOOLKIT  */
-               int hpos;
-               int i;
-
                item = Qnil;
                items = FRAME_MENU_BAR_ITEMS (f);
                for (i = 0; i < XVECTOR (items)->size; i += 3)