aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 5a2e635f843..e1124a4facd 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2322,7 +2322,8 @@ read_char_menu_prompt (nmaps, maps, prev_event, used_mouse_menu)
2322 if (NILP (name)) 2322 if (NILP (name))
2323 return Qnil; 2323 return Qnil;
2324 2324
2325#ifdef HAVE_X_MENU 2325#ifdef HAVE_X_WINDOW
2326#ifndef NO_X_MENU
2326 /* If we got to this point via a mouse click, 2327 /* If we got to this point via a mouse click,
2327 use a real menu for mouse selection. */ 2328 use a real menu for mouse selection. */
2328 if (XTYPE (prev_event) == Lisp_Cons) 2329 if (XTYPE (prev_event) == Lisp_Cons)
@@ -2344,7 +2345,8 @@ read_char_menu_prompt (nmaps, maps, prev_event, used_mouse_menu)
2344 *used_mouse_menu = 1; 2345 *used_mouse_menu = 1;
2345 return value; 2346 return value;
2346 } 2347 }
2347#endif /* HAVE_X_MENU */ 2348#endif /* not NO_X_MENU */
2349#endif /* HAVE_X_WINDOW */
2348 2350
2349 /* Prompt string always starts with map's prompt, and a space. */ 2351 /* Prompt string always starts with map's prompt, and a space. */
2350 strcpy (menu, XSTRING (name)->data); 2352 strcpy (menu, XSTRING (name)->data);