emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 4921bd7bac: Fix build with ext menu bar


From: Po Lu
Subject: master 4921bd7bac: Fix build with ext menu bar
Date: Fri, 18 Nov 2022 19:43:09 -0500 (EST)

branch: master
commit 4921bd7bac4a9609c00e6b3337a4962b46135ff3
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 6ce6ce17f2..c0642ab53a 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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]