diff options
| author | Gerd Moellmann | 2000-03-02 20:11:02 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-02 20:11:02 +0000 |
| commit | 42f55fe095ccb4c7a14ab22f21b76e44c984c791 (patch) | |
| tree | 99220171e071b6d80c4abb490287653a8187d645 /src | |
| parent | 04fff9c055a8f6a304dd11de237c0f22c4e25284 (diff) | |
| download | emacs-42f55fe095ccb4c7a14ab22f21b76e44c984c791.tar.gz emacs-42f55fe095ccb4c7a14ab22f21b76e44c984c791.zip | |
(free_glyphs): Block input while freeing matrices.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/dispnew.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cbe908de0e4..5ed013b4533 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> | 1 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * xterm.c (note_mouse_highlight): Return quickly if frame's | ||
| 4 | glyph matrices have been freed. | ||
| 5 | |||
| 6 | * dispnew.c (free_glyphs): Block input while freeing matrices. | ||
| 7 | |||
| 3 | * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors. | 8 | * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors. |
| 4 | 9 | ||
| 5 | * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use | 10 | * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use |
diff --git a/src/dispnew.c b/src/dispnew.c index ebceb1178b6..dddee0eef8d 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -2170,6 +2170,9 @@ free_glyphs (f) | |||
| 2170 | { | 2170 | { |
| 2171 | if (f && f->glyphs_initialized_p) | 2171 | if (f && f->glyphs_initialized_p) |
| 2172 | { | 2172 | { |
| 2173 | /* Block interrupt input so that we don't get surprised by an X | ||
| 2174 | event while we're in an inconsistent state. */ | ||
| 2175 | BLOCK_INPUT; | ||
| 2173 | f->glyphs_initialized_p = 0; | 2176 | f->glyphs_initialized_p = 0; |
| 2174 | 2177 | ||
| 2175 | /* Release window sub-matrices. */ | 2178 | /* Release window sub-matrices. */ |
| @@ -2213,6 +2216,8 @@ free_glyphs (f) | |||
| 2213 | free_glyph_pool (f->current_pool); | 2216 | free_glyph_pool (f->current_pool); |
| 2214 | f->desired_pool = f->current_pool = NULL; | 2217 | f->desired_pool = f->current_pool = NULL; |
| 2215 | } | 2218 | } |
| 2219 | |||
| 2220 | UNBLOCK_INPUT; | ||
| 2216 | } | 2221 | } |
| 2217 | } | 2222 | } |
| 2218 | 2223 | ||