]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix build with ext menu bar
authorPo Lu <luangruo@yahoo.com>
Sat, 19 Nov 2022 00:42:56 +0000 (08:42 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 19 Nov 2022 00:42:56 +0000 (08:42 +0800)
* src/keyboard.c (make_lispy_event): Don't access
menu_bar_window when !HAVE_EXT_MENU_BAR.

src/keyboard.c

index 6ce6ce17f27f0f538f340b56ff614a70e075153f..c0642ab53a470accf010167a29f628d361505f2e 100644 (file)
@@ -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);