When reconfiguring a window, clear it. This prevents garbage from
authorChris Hanson <org/chris-hanson/cph>
Mon, 16 Aug 1993 08:12:32 +0000 (08:12 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 16 Aug 1993 08:12:32 +0000 (08:12 +0000)
being left in the internal border of the window.

v7/src/microcode/x11term.c

index b9a0e4167edf225256a6e9951e548990983039cc..93e857c683db0b2469df8c2e641dcd07cd3af396 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: x11term.c,v 1.22 1993/07/19 21:06:48 cph Exp $
+$Id: x11term.c,v 1.23 1993/08/16 08:12:32 cph Exp $
 
 Copyright (c) 1989-93 Massachusetts Institute of Technology
 
@@ -412,6 +412,7 @@ DEFUN (xterm_reconfigure, (xw, width, height),
       (XW_Y_CSIZE (xw)) = y_csize;
       (XW_CHARACTER_MAP (xw))= new_char_map;
       (XW_HIGHLIGHT_MAP (xw))= new_hl_map;
+      XClearWindow ((XW_DISPLAY (xw)), (XW_WINDOW (xw)));
       xterm_dump_contents (xw, 0, 0, x_csize, y_csize);
       xterm_update_normal_hints (xw);
       XFlush (XW_DISPLAY (xw));