From 357460d08cdb25b342e7136f3094a73180e2ed05 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 4 Sep 2000 11:56:36 +0000 Subject: [PATCH] (xmenu_show): Call x_set_menu_resources_from_menu_face before initially popping up the menu, so the menu doesn't flash when the face settings are significantly different from the defaults. --- src/xmenu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xmenu.c b/src/xmenu.c index 9f5fd8b55a..f8b1fc4c60 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -2197,12 +2197,14 @@ xmenu_show (f, x, y, for_click, keymaps, title, error) /* Free the widget_value objects we used to specify the contents. */ free_menubar_widget_value_tree (first_wv); + /* Override any default settings with ones from the `menu' face. */ + x_set_menu_resources_from_menu_face (f, menu); + /* No selection has been chosen yet. */ menu_item_selection = 0; /* Display the menu. */ lw_popup_menu (menu, (XEvent *) &dummy); - x_set_menu_resources_from_menu_face (f, menu); popup_activated_flag = 1; /* Process events that apply to the menu. */ -- 2.20.1