changeset 26761:c15c2756ec0f

(delete_window): Block input for the time window matrices are being changed.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 07 Dec 1999 20:18:15 +0000
parents c55415d59073
children 46f1294a19db
files src/window.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Tue Dec 07 20:11:42 1999 +0000
+++ b/src/window.c	Tue Dec 07 20:18:15 1999 +0000
@@ -1053,9 +1053,11 @@
       unchain_marker (p->start);
     }
 
-  /* Free window glyph matrices.
-     It is sure that they are allocated again when ADJUST_GLYPHS
-     is called. */
+  /* Free window glyph matrices.  It is sure that they are allocated
+     again when ADJUST_GLYPHS is called.  Block input so that expose
+     events and other events that access glyph matrices are not
+     processed while we are changing them.  */
+  BLOCK_INPUT;
   free_window_matrices (XWINDOW (FRAME_ROOT_WINDOW (frame)));
 
   tem = p->next;
@@ -1114,6 +1116,7 @@
 
   /* Adjust glyph matrices. */
   adjust_glyphs (frame);
+  UNBLOCK_INPUT;
 }