changeset 40509:968b78eb17fc

(clear_garbaged_frames): Redraw the frame only if its resized_p flag is set. If not set, use the much less flickering method previously used.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 30 Oct 2001 16:58:14 +0000
parents 2d5533815f3a
children 1678415c0331
files src/xdisp.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Oct 30 16:38:10 2001 +0000
+++ b/src/xdisp.c	Tue Oct 30 16:58:14 2001 +0000
@@ -6974,9 +6974,14 @@
 	  
 	  if (FRAME_VISIBLE_P (f) && FRAME_GARBAGED_P (f))
 	    {
+	      if (f->resized_p)
+		{
+		  Fredraw_frame (frame);
+		  fprintf (stderr, "redraw frame\n");
+		}
 	      clear_current_matrices (f);
 	      f->garbaged = 0;
-	      Fredraw_frame (frame);
+	      f->resized_p = 0;
 	    }
 	}