]> git.eshelyaron.com Git - emacs.git/commitdiff
(realize_basic_faces): Block input while realizing
authorGerd Moellmann <gerd@gnu.org>
Sat, 1 Apr 2000 12:23:25 +0000 (12:23 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sat, 1 Apr 2000 12:23:25 +0000 (12:23 +0000)
the faces.

src/xfaces.c

index bbe0d954b99fe1b4c6060686dd008bab4acfca9f..c585515497a2ef2c5abfdab37b0378ad2f247ac7 100644 (file)
@@ -5585,6 +5585,10 @@ realize_basic_faces (f)
      struct frame *f;
 {
   int success_p = 0;
+
+  /* Block input there so that we won't be surprised by an X expose
+     event, for instance without having the faces set up.  */
+  BLOCK_INPUT;
   
   if (realize_default_face (f))
     {
@@ -5600,6 +5604,7 @@ realize_basic_faces (f)
       success_p = 1;
     }
 
+  UNBLOCK_INPUT;
   return success_p;
 }