Mercurial > emacs
changeset 41719:3734871037bb
(coordinates_in_window): Handle separate left and right fringe widths.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sat, 01 Dec 2001 01:15:43 +0000 |
parents | 0ef9924a634f |
children | b4898b480ab0 |
files | src/window.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/window.c Sat Dec 01 01:14:55 2001 +0000 +++ b/src/window.c Sat Dec 01 01:15:43 2001 +0000 @@ -511,7 +511,6 @@ everywhere. */ struct frame *f = XFRAME (WINDOW_FRAME (w)); int left_x, right_x, top_y, bottom_y; - int fringe_width = FRAME_LEFT_FRINGE_WIDTH (f); enum window_part part; int ux = CANON_X_UNIT (f); int x0 = XFASTINT (w->left) * ux; @@ -584,10 +583,10 @@ else if (*y < top_y || *y >= bottom_y || *x < (left_x - - fringe_width + - FRAME_LEFT_FRINGE_WIDTH (f) - FRAME_LEFT_SCROLL_BAR_WIDTH (f) * ux) || *x > (right_x - + fringe_width + + FRAME_RIGHT_FRINGE_WIDTH (f) + FRAME_RIGHT_SCROLL_BAR_WIDTH (f) * ux)) { part = ON_NOTHING; @@ -597,7 +596,7 @@ if (!w->pseudo_window_p && !FRAME_HAS_VERTICAL_SCROLL_BARS (f) && !WINDOW_RIGHTMOST_P (w) - && (abs (*x - right_x - fringe_width) < grabbable_width)) + && (abs (*x - right_x - FRAME_RIGHT_FRINGE_WIDTH (f)) < grabbable_width)) { part = ON_VERTICAL_BORDER; }