From: Richard M. Stallman Date: Fri, 11 Aug 1995 00:55:47 +0000 (+0000) Subject: (x_set_menu_bar_lines) [USE_X_TOOLKIT]: When turning X-Git-Tag: emacs-19.34~3028 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0d8ef3f41adc67c1d931ae2fb7b63d621b9128c9;p=emacs.git (x_set_menu_bar_lines) [USE_X_TOOLKIT]: When turning menu bar on, make sure next redisplay creates it. --- 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)