aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index a4552f9e2b9..7db075284a4 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2662,13 +2662,7 @@ make_lispy_event (event)
2662 if (! (event->modifiers & down_modifier)) 2662 if (! (event->modifiers & down_modifier))
2663 return Qnil; 2663 return Qnil;
2664 2664
2665#ifdef USE_X_TOOLKIT 2665#ifndef USE_X_TOOLKIT
2666 /* The click happened in the menubar.
2667 Look for the menu item selected. */
2668 item = map_event_to_object (event, f);
2669
2670 XFASTINT (event->y) = 1;
2671#else /* not USE_X_TOOLKIT */
2672 item = Qnil; 2666 item = Qnil;
2673 items = FRAME_MENU_BAR_ITEMS (f); 2667 items = FRAME_MENU_BAR_ITEMS (f);
2674 for (i = 0; i < XVECTOR (items)->size; i += 3) 2668 for (i = 0; i < XVECTOR (items)->size; i += 3)