changeset 27968:7634011b93f3

(free_glyphs): Block input while freeing matrices.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 02 Mar 2000 20:09:29 +0000
parents 7d61ff2d1530
children 1ea6c361ca9f
files src/dispnew.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Thu Mar 02 20:08:20 2000 +0000
+++ b/src/dispnew.c	Thu Mar 02 20:09:29 2000 +0000
@@ -2170,6 +2170,9 @@
 {
   if (f && f->glyphs_initialized_p)
     {
+      /* Block interrupt input so that we don't get surprised by an X
+         event while we're in an inconsistent state.  */
+      BLOCK_INPUT;
       f->glyphs_initialized_p = 0;
       
       /* Release window sub-matrices.  */
@@ -2213,6 +2216,8 @@
 	  free_glyph_pool (f->current_pool);
 	  f->desired_pool = f->current_pool = NULL;
 	}
+      
+      UNBLOCK_INPUT;
     }
 }