From: Kim F. Storm Date: Tue, 11 Oct 2005 15:07:07 +0000 (+0000) Subject: (coordinates_in_window): Fix returned y position when X-Git-Tag: emacs-pretest-22.0.90~6667 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4d1add72eb8cf8a01a13d087855545625e3205ec;p=emacs.git (coordinates_in_window): Fix returned y position when ON_SCROLL_BAR. --- 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);