]> git.eshelyaron.com Git - emacs.git/commitdiff
(coordinates_in_window): Take frame's internal border width
authorGerd Moellmann <gerd@gnu.org>
Fri, 25 Feb 2000 10:39:47 +0000 (10:39 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 25 Feb 2000 10:39:47 +0000 (10:39 +0000)
into account.

src/ChangeLog
src/window.c

index 19db11870fef3e7ebdff91dcbc72e717d92e0a8e..dbdd1515605ca4c1fda72b19b8a451897c3cc0be 100644 (file)
@@ -2,6 +2,8 @@
 
        * window.c (Fset_window_buffer): Set WINDOW to the window
        after decoding.
+       (coordinates_in_window): Take frame's internal border width
+       into account.
 
 2000-02-24  Gerd Moellmann  <gerd@gnu.org>
 
index bdc0c6c1bc0f773fa5b2ef09256988a1d6827e4a..be6bf813920e7fb99a767274c46f02cdc2250d04 100644 (file)
@@ -464,9 +464,11 @@ coordinates_in_window (w, x, y)
     }
   else
     {
-      left_x = WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X (w);
+      left_x = (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X (w)
+               - FRAME_INTERNAL_BORDER_WIDTH (f));
       right_x = WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X (w);
-      top_y = WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y (w);
+      top_y = (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y (w)
+              - FRAME_INTERNAL_BORDER_WIDTH (f));
       bottom_y = WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y (w);
     }