diff options
| author | Gerd Moellmann | 2000-04-01 12:23:25 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-04-01 12:23:25 +0000 |
| commit | 17e8204bae924692b3aa899e8af295cbc49fedc1 (patch) | |
| tree | cac90704997a4e863e00733371ad6ca94eb6faac /src | |
| parent | a2272f321b312b3f5652462518d87ff74b39f73c (diff) | |
| download | emacs-17e8204bae924692b3aa899e8af295cbc49fedc1.tar.gz emacs-17e8204bae924692b3aa899e8af295cbc49fedc1.zip | |
(realize_basic_faces): Block input while realizing
the faces.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
| 5585 | struct frame *f; | 5585 | struct frame *f; |
| 5586 | { | 5586 | { |
| 5587 | int success_p = 0; | 5587 | int success_p = 0; |
| 5588 | |||
| 5589 | /* Block input there so that we won't be surprised by an X expose | ||
| 5590 | event, for instance without having the faces set up. */ | ||
| 5591 | BLOCK_INPUT; | ||
| 5588 | 5592 | ||
| 5589 | if (realize_default_face (f)) | 5593 | if (realize_default_face (f)) |
| 5590 | { | 5594 | { |
| @@ -5600,6 +5604,7 @@ realize_basic_faces (f) | |||
| 5600 | success_p = 1; | 5604 | success_p = 1; |
| 5601 | } | 5605 | } |
| 5602 | 5606 | ||
| 5607 | UNBLOCK_INPUT; | ||
| 5603 | return success_p; | 5608 | return success_p; |
| 5604 | } | 5609 | } |
| 5605 | 5610 | ||