]> git.eshelyaron.com Git - emacs.git/commitdiff
(coordinates_in_window): Fix returned y position when
authorKim F. Storm <storm@cua.dk>
Tue, 11 Oct 2005 15:07:07 +0000 (15:07 +0000)
committerKim F. Storm <storm@cua.dk>
Tue, 11 Oct 2005 15:07:07 +0000 (15:07 +0000)
ON_SCROLL_BAR.

src/window.c

index ff01b2c902c4b52c61eb46e3d571278ec2aaa4f1..17c8f52c2863c56cec71971527fd437bb71c2527 100644 (file)
@@ -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);