changeset 90569:0af2dbdeaeb3

(xfont_match): Block and unblock input while callin Xlib.
author Kenichi Handa <handa@m17n.org>
date Tue, 01 Aug 2006 02:56:45 +0000
parents 3762a2cc74de
children d8cc00c7a8db
files src/xfont.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfont.c	Tue Aug 01 02:40:50 2006 +0000
+++ b/src/xfont.c	Tue Aug 01 02:56:45 2006 +0000
@@ -451,6 +451,7 @@
   if (! CONSP (val) || ! STRINGP (XCDR (val)))
     return Qnil;
 
+  BLOCK_INPUT;
   entity = Qnil;
   name = (char *) SDATA (XCDR (val));
   xfont = XLoadQueryFont (display, name);
@@ -478,6 +479,7 @@
 	}
       XFreeFont (display, xfont);
     }
+  UNBLOCK_INPUT;
 
   return entity;
 }