Split #ifdef so as not to confuse c-mode.
authorKarl Heuer <kwzh@gnu.org>
Fri, 11 Feb 1994 00:13:59 +0000 (00:13 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 11 Feb 1994 00:13:59 +0000 (00:13 +0000)
src/keyboard.c

index 2789442..a50062e 100644 (file)
@@ -2489,14 +2489,16 @@ make_lispy_event (event)
 
 #ifdef USE_X_TOOLKIT
            if (FRAME_EXTERNAL_MENU_BAR (f) && XINT (event->y) == -1)
+#else
+           if (XINT (event->y) < FRAME_MENU_BAR_LINES (f))
+#endif
              {
+#ifdef USE_X_TOOLKIT
                /* The click happened in the menubar.
                   Look for the menu item selected.  */
                Lisp_Object items = map_event_to_object(event, f);
                XFASTINT (event->y) = 1;
 #else /* not USE_X_TOOLKIT  */
-           if (XINT (event->y) < FRAME_MENU_BAR_LINES (f))
-             {
                int hpos;
                Lisp_Object items;
                items = FRAME_MENU_BAR_ITEMS (f);