From 17e8204bae924692b3aa899e8af295cbc49fedc1 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sat, 1 Apr 2000 12:23:25 +0000 Subject: [PATCH] (realize_basic_faces): Block input while realizing the faces. --- src/xfaces.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xfaces.c b/src/xfaces.c index bbe0d954b99..c585515497a 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -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; } -- 2.39.5