From 444c7ea83fe4c82035fbb1190606a3bdee064f26 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 21 Oct 2022 19:05:48 +0300 Subject: [PATCH] ; * src/menu.c (x_popup_menu_1): Make 'cancel_hourglass' call conditional. --- src/menu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/menu.c b/src/menu.c index 671fc65a38a..a8cb942a195 100644 --- a/src/menu.c +++ b/src/menu.c @@ -1392,6 +1392,7 @@ x_popup_menu_1 (Lisp_Object position, Lisp_Object menu) run_hook (Qx_pre_popup_menu_hook); +#ifdef HAVE_WINDOW_SYSTEM /* Cancel the hourglass timer. Depending on how the show_menu_hook is implemented, the hourglass window can either be mapped (or on non-X systems, the hourglass cursor can be defined) either while @@ -1400,6 +1401,7 @@ x_popup_menu_1 (Lisp_Object position, Lisp_Object menu) detect input immediately after a popup menu generated by Custom is unmapped. */ cancel_hourglass (); +#endif /* Display them in a menu, but not if F is the initial frame that doesn't have its hooks set (e.g., in a batch session), because -- 2.39.5