diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index 53a57e688e2..c6f61668e1a 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3328,7 +3328,10 @@ x_display_bar_cursor (f, 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) |
| @@ -3394,7 +3397,10 @@ x_display_box_cursor (f, 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. */ |