changeset 66018:7810bc0b0259

(coordinates_in_window): Fix returned y position when ON_SCROLL_BAR.
author Kim F. Storm <storm@cua.dk>
date Tue, 11 Oct 2005 15:07:07 +0000
parents a75f1ccb1086
children 26e41053c306
files src/window.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Tue Oct 11 15:06:48 2005 +0000
+++ b/src/window.c	Tue Oct 11 15:07:07 2005 +0000
@@ -682,7 +682,10 @@
 
   /* 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);