changeset 33747:e0e2461a24fe

(x_set_tool_bar_lines): Clear internal border when tool bar gets smaller.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 22 Nov 2000 14:27:38 +0000
parents e7c4d54b3991
children 2827e4066e08
files src/xfns.c
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Wed Nov 22 14:07:59 2000 +0000
+++ b/src/xfns.c	Wed Nov 22 14:27:38 2000 +0000
@@ -2045,6 +2045,21 @@
       clear_current_matrices (f);
       updating_frame = NULL;
     }
+
+  /* If the tool bar gets smaller, the internal border below it
+     has to be cleared.  It was formerly part of the display
+     of the larger tool bar, and updating windows won't clear it.  */
+  if (delta < 0)
+    {
+      int height = FRAME_INTERNAL_BORDER_WIDTH (f);
+      int width = PIXEL_WIDTH (f);
+      int y = nlines * CANON_Y_UNIT (f);
+
+      BLOCK_INPUT;
+      XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
+		  0, y, width, height, False);
+      UNBLOCK_INPUT;
+    }
 }