From: Po Lu Date: Sat, 19 Nov 2022 00:42:56 +0000 (+0800) Subject: Fix build with ext menu bar X-Git-Tag: emacs-29.0.90~1616^2~40 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4921bd7bac4a9609c00e6b3337a4962b46135ff3;p=emacs.git Fix build with ext menu bar * src/keyboard.c (make_lispy_event): Don't access menu_bar_window when !HAVE_EXT_MENU_BAR. --- diff --git a/src/keyboard.c b/src/keyboard.c index 6ce6ce17f27..c0642ab53a4 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -5974,7 +5974,7 @@ make_lispy_event (struct input_event *event) in a menu (non-toolkit version). */ if (!toolkit_menubar_in_use (f)) { -#if defined HAVE_WINDOW_SYSTEM +#if defined HAVE_WINDOW_SYSTEM && !defined HAVE_EXT_MENU_BAR if (FRAME_WINDOW_P (f)) { struct window *menu_w = XWINDOW (f->menu_bar_window);