mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-02 08:22:22 +00:00
(free_glyphs): Block input while freeing matrices.
This commit is contained in:
parent
04fff9c055
commit
42f55fe095
@ -1,5 +1,10 @@
|
||||
2000-03-02 Gerd Moellmann <gerd@gnu.org>
|
||||
|
||||
* xterm.c (note_mouse_highlight): Return quickly if frame's
|
||||
glyph matrices have been freed.
|
||||
|
||||
* dispnew.c (free_glyphs): Block input while freeing matrices.
|
||||
|
||||
* xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
|
||||
|
||||
* xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
|
||||
|
@ -2170,6 +2170,9 @@ free_glyphs (f)
|
||||
{
|
||||
if (f && f->glyphs_initialized_p)
|
||||
{
|
||||
/* Block interrupt input so that we don't get surprised by an X
|
||||
event while we're in an inconsistent state. */
|
||||
BLOCK_INPUT;
|
||||
f->glyphs_initialized_p = 0;
|
||||
|
||||
/* Release window sub-matrices. */
|
||||
@ -2213,6 +2216,8 @@ free_glyphs (f)
|
||||
free_glyph_pool (f->current_pool);
|
||||
f->desired_pool = f->current_pool = NULL;
|
||||
}
|
||||
|
||||
UNBLOCK_INPUT;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user