Mercurial > emacs
changeset 28183:7d97c6fbc3d9
(x_update_window_cursor): Don't update in frames
who are in the process of being deleted.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 17 Mar 2000 21:12:02 +0000 |
parents | cf4e7d561883 |
children | 594d27d3eb98 |
files | src/xterm.c |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Fri Mar 17 20:54:41 2000 +0000 +++ b/src/xterm.c Fri Mar 17 21:12:02 2000 +0000 @@ -10496,10 +10496,15 @@ struct window *w; int on; { - BLOCK_INPUT; - x_display_and_set_cursor (w, on, w->phys_cursor.hpos, w->phys_cursor.vpos, - w->phys_cursor.x, w->phys_cursor.y); - UNBLOCK_INPUT; + /* Don't update cursor in windows whose frame is in the process + of being deleted. */ + if (w->current_matrix) + { + BLOCK_INPUT; + x_display_and_set_cursor (w, on, w->phys_cursor.hpos, w->phys_cursor.vpos, + w->phys_cursor.x, w->phys_cursor.y); + UNBLOCK_INPUT; + } }