summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c2
1 files changed, 2 insertions, 0 deletions
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