changeset 56524:d2661c5fec0b

(Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
author Richard M. Stallman <rms@gnu.org>
date Sat, 24 Jul 2004 21:38:22 +0000
parents 588fc06a48ae
children a86a4deb195d
files src/window.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Sat Jul 24 21:37:11 2004 +0000
+++ b/src/window.c	Sat Jul 24 21:38:22 2004 +0000
@@ -938,8 +938,10 @@
   CHECK_NUMBER_OR_FLOAT (y);
 
   return window_from_coordinates (f,
-				  FRAME_PIXEL_X_FROM_CANON_X (f, x),
-				  FRAME_PIXEL_Y_FROM_CANON_Y (f, y),
+				  (FRAME_PIXEL_X_FROM_CANON_X (f, x)
+				   + FRAME_INTERNAL_BORDER_WIDTH (f)),
+				  (FRAME_PIXEL_Y_FROM_CANON_Y (f, y)
+				   + FRAME_INTERNAL_BORDER_WIDTH (f)),
 				  0, 0, 0, 0);
 }