diff options
| author | Jim Blandy | 1993-03-17 20:11:00 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-03-17 20:11:00 +0000 |
| commit | 49d838ea4acbf67e158c1f181a29d62b83c09052 (patch) | |
| tree | 7af84667cabc97225450b2c672b1344ac9b2b9c0 /src | |
| parent | 3109d63f84fda59852d4caebbd229939b2b7cd94 (diff) | |
| download | emacs-49d838ea4acbf67e158c1f181a29d62b83c09052.tar.gz emacs-49d838ea4acbf67e158c1f181a29d62b83c09052.zip | |
* xterm.c (x_display_box_cursor, x_display_bar_cursor): Don't
display the cursor on garbaged frames.
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. */ |