From 0d8ef3f41adc67c1d931ae2fb7b63d621b9128c9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 11 Aug 1995 00:55:47 +0000 Subject: [PATCH] (x_set_menu_bar_lines) [USE_X_TOOLKIT]: When turning menu bar on, make sure next redisplay creates it. --- src/xfns.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xfns.c b/src/xfns.c index 10d8fab1109..31cee63fff2 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -1694,7 +1694,12 @@ x_set_menu_bar_lines (f, value, oldval) #ifdef USE_X_TOOLKIT FRAME_MENU_BAR_LINES (f) = 0; if (nlines) - FRAME_EXTERNAL_MENU_BAR (f) = 1; + { + FRAME_EXTERNAL_MENU_BAR (f) = 1; + if (f->output_data.x->menubar_widget == 0) + /* Make sure next redisplay shows the menu bar. */ + XWINDOW (FRAME_SELECTED_WINDOW (f))->update_mode_line = Qt; + } else { if (FRAME_EXTERNAL_MENU_BAR (f) == 1) -- 2.39.2