comparison src/xterm.c @ 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 b20bb441f47f
children 012b04efa234
comparison
equal deleted inserted replaced
2234:53ce64806d58 2235:80e0d36bbb77
3326 struct frame *f; 3326 struct frame *f;
3327 int on; 3327 int on;
3328 { 3328 {
3329 struct frame_glyphs *current_glyphs = FRAME_CURRENT_GLYPHS (f); 3329 struct frame_glyphs *current_glyphs = FRAME_CURRENT_GLYPHS (f);
3330 3330
3331 if (! FRAME_VISIBLE_P (f)) 3331 /* This is pointless on invisible frames, and dangerous on garbaged
3332 frames; in the latter case, the frame may be in the midst of
3333 changing its size, and curs_x and curs_y may be off the frame. */
3334 if (! FRAME_VISIBLE_P (f) || FRAME_GARBAGED_P (f))
3332 return; 3335 return;
3333 3336
3334 if (! on && f->phys_cursor_x < 0) 3337 if (! on && f->phys_cursor_x < 0)
3335 return; 3338 return;
3336 3339
3392 struct frame *f; 3395 struct frame *f;
3393 int on; 3396 int on;
3394 { 3397 {
3395 struct frame_glyphs *current_glyphs = FRAME_CURRENT_GLYPHS (f); 3398 struct frame_glyphs *current_glyphs = FRAME_CURRENT_GLYPHS (f);
3396 3399
3397 if (! FRAME_VISIBLE_P (f)) 3400 /* This is pointless on invisible frames, and dangerous on garbaged
3401 frames; in the latter case, the frame may be in the midst of
3402 changing its size, and curs_x and curs_y may be off the frame. */
3403 if (! FRAME_VISIBLE_P (f) || FRAME_GARBAGED_P (f))
3398 return; 3404 return;
3399 3405
3400 /* If cursor is off and we want it off, return quickly. */ 3406 /* If cursor is off and we want it off, return quickly. */
3401 if (!on && f->phys_cursor_x < 0) 3407 if (!on && f->phys_cursor_x < 0)
3402 return; 3408 return;