From 4d1add72eb8cf8a01a13d087855545625e3205ec Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Tue, 11 Oct 2005 15:07:07 +0000 Subject: [PATCH] (coordinates_in_window): Fix returned y position when ON_SCROLL_BAR. --- src/window.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/window.c b/src/window.c index ff01b2c902c..17c8f52c286 100644 --- a/src/window.c +++ b/src/window.c @@ -682,7 +682,10 @@ coordinates_in_window (w, x, y) /* Outside any interesting column? */ if (*x < left_x || *x > right_x) - return ON_SCROLL_BAR; + { + *y -= top_y; + return ON_SCROLL_BAR; + } lmargin_width = window_box_width (w, LEFT_MARGIN_AREA); rmargin_width = window_box_width (w, RIGHT_MARGIN_AREA); -- 2.39.5