changeset 31295:d4f918f0b184

(update_frame): Only set display_completed here; use the update_begin and update_end calls here from update_frame_1. (update_frame_1): Don't set display_completed here, don't call update_begin/update_end.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 30 Aug 2000 14:59:26 +0000
parents 52f31a08e52f
children 8d894e7634fb
files src/dispnew.c
diffstat 1 files changed, 14 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Wed Aug 30 14:59:06 2000 +0000
+++ b/src/dispnew.c	Wed Aug 30 14:59:26 2000 +0000
@@ -3560,10 +3560,9 @@
       /* Update windows.  */
       paused_p = update_window_tree (root_window, force_p);
       update_end (f);
-      display_completed = !paused_p;
-
-      /* The flush is a performance bottleneck under X.  */
-#if 0
+      
+#if 0 /* This flush is a performance bottleneck under X,
+	 and it doesn't seem to be necessary anyway.  */
       rif->flush_display (f);
 #endif
     }
@@ -3573,21 +3572,26 @@
 	 frame matrix we operate.  */
       set_frame_matrix_frame (f);
 
-      /* Build F's desired matrix from window matrices.  For windows
-	 whose must_be_updated_p flag is set, desired matrices are
-	 made part of the desired frame matrix.  For other windows,
-	 the current matrix is copied.  */
+      /* Build F's desired matrix from window matrices.  */
       build_frame_matrix (f);
       
-      /* Do the update on the frame desired matrix.  */
+      /* Update the display  */
+      update_begin (f);
       paused_p = update_frame_1 (f, force_p, inhibit_hairy_id_p);
-      
+      update_end (f);
+
+      if (termscript)
+	fflush (termscript);
+      fflush (stdout);
+
       /* Check window matrices for lost pointers.  */
       IF_DEBUG (check_window_matrix_pointers (root_window));
     }
 
   /* Reset flags indicating that a window should be updated.  */
   set_window_update_flags (root_window, 0);
+  
+  display_completed = !paused_p;
   return paused_p;
 }
 
@@ -4718,8 +4722,6 @@
       goto do_pause;
     }
 
-  update_begin (f);
-
   /* If we cannot insert/delete lines, it's no use trying it.  */
   if (!line_ins_del_ok)
     inhibit_id_p = 1;
@@ -4875,15 +4877,8 @@
 	}
     }
 
-  update_end (f);
-
-  if (termscript)
-    fflush (termscript);
-  fflush (stdout);
-
  do_pause:
 
-  display_completed = !pause;
   clear_desired_matrices (f);
   return pause;
 }