From: Gerd Moellmann Date: Fri, 17 Mar 2000 21:12:54 +0000 (+0000) Subject: (x_update_window_cursor): Don't update in frames X-Git-Tag: emacs-pretest-21.0.90~4611 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=16b5d424a737b55d74d77016156066380d9ed88a;p=emacs.git (x_update_window_cursor): Don't update in frames who are in the process of being deleted. --- diff --git a/src/ChangeLog b/src/ChangeLog index 22c2c9c1061..3b3184e47c6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-03-17 Gerd Moellmann + + * xterm.c (x_update_window_cursor): Don't update in frames + who are in the process of being deleted. + 2000-03-16 Gerd Moellmann * Makefile.in (mostlyclean): Add `*.core'. diff --git a/src/xterm.c b/src/xterm.c index 1f231b37e4d..575461b751f 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10496,10 +10496,15 @@ x_update_window_cursor (w, on) 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; + } }