# HG changeset patch # User Gerd Moellmann # Date 953327522 0 # Node ID 7d97c6fbc3d9aa9d13fa9365835cbdc4e8ba9faf # Parent cf4e7d56188302592760622cae7cdc856acabdd5 (x_update_window_cursor): Don't update in frames who are in the process of being deleted. diff -r cf4e7d561883 -r 7d97c6fbc3d9 src/xterm.c --- 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; + } }