changeset 12832:0d750e41c4f2

(x_set_menu_bar_lines) [USE_X_TOOLKIT]: When turning menu bar on, make sure next redisplay creates it.
author Richard M. Stallman <rms@gnu.org>
date Fri, 11 Aug 1995 00:55:47 +0000
parents 3917c5d131d3
children 25464bf61eb1
files src/xfns.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Fri Aug 11 00:54:44 1995 +0000
+++ b/src/xfns.c	Fri Aug 11 00:55:47 1995 +0000
@@ -1694,7 +1694,12 @@
 #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)