aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 0cb0b73b71d..c17e1e801b7 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -2490,11 +2490,14 @@ create_and_show_popup_menu (f, first_wv, x, y, for_click)
2490 2490
2491 record_unwind_protect (pop_down_menu, make_save_value (menu, 0)); 2491 record_unwind_protect (pop_down_menu, make_save_value (menu, 0));
2492 2492
2493 /* Set this to one. popup_widget_loop increases it by one, so it becomes 2493 if (GTK_WIDGET_MAPPED (menu))
2494 two. show_help_echo uses this to detect popup menus. */ 2494 {
2495 popup_activated_flag = 1; 2495 /* Set this to one. popup_widget_loop increases it by one, so it becomes
2496 /* Process events that apply to the menu. */ 2496 two. show_help_echo uses this to detect popup menus. */
2497 popup_widget_loop (1, menu); 2497 popup_activated_flag = 1;
2498 /* Process events that apply to the menu. */
2499 popup_widget_loop (1, menu);
2500 }
2498 2501
2499 unbind_to (specpdl_count, Qnil); 2502 unbind_to (specpdl_count, Qnil);
2500 2503