diff src/xfns.c @ 31999:d862c73ea0d5

(x_set_tool_bar_lines): Clear frame when tool bar disappears.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 29 Sep 2000 13:18:44 +0000
parents 9c779861abff
children 0abb3c153331
line wrap: on
line diff
--- a/src/xfns.c	Fri Sep 29 13:02:32 2000 +0000
+++ b/src/xfns.c	Fri Sep 29 13:18:44 2000 +0000
@@ -2035,6 +2035,19 @@
   FRAME_TOOL_BAR_LINES (f) = nlines;
   x_change_window_heights (root_window, delta);
   adjust_glyphs (f);
+  
+  /* We also have to make sure that the internal border at the top of
+     the frame, below the menu bar or tool bar, is redrawn when the
+     tool bar disappears.  This is so because the internal border is
+     below the tool bar if one is displayed, but is below the menu bar
+     if there isn't a tool bar.  The tool bar draws into the area
+     below the menu bar.  */
+  if (FRAME_X_WINDOW (f) && FRAME_TOOL_BAR_LINES (f) == 0)
+    {
+      updating_frame = f;
+      clear_frame ();
+      updating_frame = NULL;
+    }
 }