aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-02-11 00:13:59 +0000
committerKarl Heuer1994-02-11 00:13:59 +0000
commit7b260679d0e8b58e1d1c6e778b193a342266a7c0 (patch)
treed5abcdd8bf0bc3311126201a59b1ea862f92d25f /src
parentafdb2485967733eeea4806f8cb580f7aef8411ca (diff)
downloademacs-7b260679d0e8b58e1d1c6e778b193a342266a7c0.tar.gz
emacs-7b260679d0e8b58e1d1c6e778b193a342266a7c0.zip
Split #ifdef so as not to confuse c-mode.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 27894429596..a50062e0e7e 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2489,14 +2489,16 @@ make_lispy_event (event)
2489 2489
2490#ifdef USE_X_TOOLKIT 2490#ifdef USE_X_TOOLKIT
2491 if (FRAME_EXTERNAL_MENU_BAR (f) && XINT (event->y) == -1) 2491 if (FRAME_EXTERNAL_MENU_BAR (f) && XINT (event->y) == -1)
2492#else
2493 if (XINT (event->y) < FRAME_MENU_BAR_LINES (f))
2494#endif
2492 { 2495 {
2496#ifdef USE_X_TOOLKIT
2493 /* The click happened in the menubar. 2497 /* The click happened in the menubar.
2494 Look for the menu item selected. */ 2498 Look for the menu item selected. */
2495 Lisp_Object items = map_event_to_object(event, f); 2499 Lisp_Object items = map_event_to_object(event, f);
2496 XFASTINT (event->y) = 1; 2500 XFASTINT (event->y) = 1;
2497#else /* not USE_X_TOOLKIT */ 2501#else /* not USE_X_TOOLKIT */
2498 if (XINT (event->y) < FRAME_MENU_BAR_LINES (f))
2499 {
2500 int hpos; 2502 int hpos;
2501 Lisp_Object items; 2503 Lisp_Object items;
2502 items = FRAME_MENU_BAR_ITEMS (f); 2504 items = FRAME_MENU_BAR_ITEMS (f);