changeset 25360:2f3ad0a21be5

Call change_frame_size and do_pending_window_change with new parameter. (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear under scroll bar widget.
author Gerd Moellmann <gerd@gnu.org>
date Sat, 21 Aug 1999 19:31:13 +0000
parents 14135aa647e2
children bf9932dab556
files src/xterm.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat Aug 21 19:31:04 1999 +0000
+++ b/src/xterm.c	Sat Aug 21 19:31:13 1999 +0000
@@ -7704,6 +7704,10 @@
 
   /* Map the window/widget.  */
 #if USE_TOOLKIT_SCROLL_BARS
+  XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
+	      left, top,
+	      FRAME_SCROLL_BAR_COLS (f) * CANON_X_UNIT (f),
+	      window_box_height (w), False);
   XtMapWidget (SCROLL_BAR_X_WIDGET (bar));
   XtConfigureWidget (SCROLL_BAR_X_WIDGET (bar),
 		     left + VERTICAL_SCROLL_BAR_WIDTH_TRIM,
@@ -9421,7 +9425,7 @@
 		      || event.xconfigure.width != f->output_data.x->pixel_width
 		      || event.xconfigure.height != f->output_data.x->pixel_height)
 		    {
-		      change_frame_size (f, rows, columns, 0, 1);
+		      change_frame_size (f, rows, columns, 0, 1, 0);
 		      SET_FRAME_GARBAGED (f);
 		      cancel_mouse_face (f);
 		    }
@@ -10836,7 +10840,7 @@
 
      We pass 1 for DELAY since we can't run Lisp code inside of
      a BLOCK_INPUT.  */
-  change_frame_size (f, rows, cols, 0, 1);
+  change_frame_size (f, rows, cols, 0, 1, 0);
   PIXEL_WIDTH (f) = pixelwidth;
   PIXEL_HEIGHT (f) = pixelheight;