diff options
| author | Kim F. Storm | 2003-06-09 23:01:52 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-06-09 23:01:52 +0000 |
| commit | aecf50d2f137540f0b372484b7e4a8b1eee548c4 (patch) | |
| tree | dcbd9879adf2360c99afc264752926c95fe932ea | |
| parent | 700e47c2405052a2db23375b7905b615065e245e (diff) | |
| download | emacs-aecf50d2f137540f0b372484b7e4a8b1eee548c4.tar.gz emacs-aecf50d2f137540f0b372484b7e4a8b1eee548c4.zip | |
(phys_cursor_in_rect_p): Fix 2003-05-24 change.
Adjust phys_cursor.x to be relative to window box, rather than
text area before checking -- to ensure cursor is redrawn when
exposing window.
Note: This also fixes a similar (older) bug if display margins
are present.
| -rw-r--r-- | src/xdisp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index c51a29a73d0..c8ecbcbd798 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -20186,7 +20186,9 @@ phys_cursor_in_rect_p (w, r) | |||
| 20186 | cursor_glyph = get_phys_cursor_glyph (w); | 20186 | cursor_glyph = get_phys_cursor_glyph (w); |
| 20187 | if (cursor_glyph) | 20187 | if (cursor_glyph) |
| 20188 | { | 20188 | { |
| 20189 | cr.x = w->phys_cursor.x; | 20189 | /* r is relative to W's box, but w->phys_cursor.x is relative |
| 20190 | to left edge of W's TEXT area. Adjust it. */ | ||
| 20191 | cr.x = window_box_left_offset (w, TEXT_AREA) + w->phys_cursor.x; | ||
| 20190 | cr.y = w->phys_cursor.y; | 20192 | cr.y = w->phys_cursor.y; |
| 20191 | cr.width = cursor_glyph->pixel_width; | 20193 | cr.width = cursor_glyph->pixel_width; |
| 20192 | cr.height = w->phys_cursor_height; | 20194 | cr.height = w->phys_cursor_height; |