Mercurial > emacs
changeset 2235:80e0d36bbb77
* xterm.c (x_display_box_cursor, x_display_bar_cursor): Don't
display the cursor on garbaged frames.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Wed, 17 Mar 1993 20:11:00 +0000 |
parents | 53ce64806d58 |
children | c26427fc12e2 |
files | src/xterm.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Wed Mar 17 17:19:16 1993 +0000 +++ b/src/xterm.c Wed Mar 17 20:11:00 1993 +0000 @@ -3328,7 +3328,10 @@ { struct frame_glyphs *current_glyphs = FRAME_CURRENT_GLYPHS (f); - if (! FRAME_VISIBLE_P (f)) + /* This is pointless on invisible frames, and dangerous on garbaged + frames; in the latter case, the frame may be in the midst of + changing its size, and curs_x and curs_y may be off the frame. */ + if (! FRAME_VISIBLE_P (f) || FRAME_GARBAGED_P (f)) return; if (! on && f->phys_cursor_x < 0) @@ -3394,7 +3397,10 @@ { struct frame_glyphs *current_glyphs = FRAME_CURRENT_GLYPHS (f); - if (! FRAME_VISIBLE_P (f)) + /* This is pointless on invisible frames, and dangerous on garbaged + frames; in the latter case, the frame may be in the midst of + changing its size, and curs_x and curs_y may be off the frame. */ + if (! FRAME_VISIBLE_P (f) || FRAME_GARBAGED_P (f)) return; /* If cursor is off and we want it off, return quickly. */