changeset 56540:b1738412da70

(Fcoordinates_in_window_p): Take account of FRAME_INTERNAL_BORDER_WIDTH.
author Richard M. Stallman <rms@gnu.org>
date Sun, 25 Jul 2004 17:35:49 +0000
parents 9fc5aae4053e
children 919c8adb1702
files src/window.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Sun Jul 25 17:35:04 2004 +0000
+++ b/src/window.c	Sun Jul 25 17:35:49 2004 +0000
@@ -783,8 +783,8 @@
   ly = Fcdr (coordinates);
   CHECK_NUMBER_OR_FLOAT (lx);
   CHECK_NUMBER_OR_FLOAT (ly);
-  x = FRAME_PIXEL_X_FROM_CANON_X (f, lx);
-  y = FRAME_PIXEL_Y_FROM_CANON_Y (f, ly);
+  x = FRAME_PIXEL_X_FROM_CANON_X (f, lx) + FRAME_INTERNAL_BORDER_WIDTH (f);
+  y = FRAME_PIXEL_Y_FROM_CANON_Y (f, ly) + FRAME_INTERNAL_BORDER_WIDTH (f);
 
   switch (coordinates_in_window (w, &x, &y))
     {