From 4921bd7bac4a9609c00e6b3337a4962b46135ff3 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 19 Nov 2022 08:42:56 +0800 Subject: [PATCH] Fix build with ext menu bar * src/keyboard.c (make_lispy_event): Don't access menu_bar_window when !HAVE_EXT_MENU_BAR. --- src/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5