# HG changeset patch # User Gerd Moellmann # Date 970233524 0 # Node ID d862c73ea0d50f7d70f59f7a3bbb16bea620c48d # Parent 2fc7fc7dc44c9bc14f5f3188e04be291abc34241 (x_set_tool_bar_lines): Clear frame when tool bar disappears. diff -r 2fc7fc7dc44c -r d862c73ea0d5 src/xfns.c --- 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; + } }