changeset 18036:d6297be18ba8

(x_real_positions): Subtract border width from results.
author Richard M. Stallman <rms@gnu.org>
date Fri, 30 May 1997 05:13:47 +0000
parents edf54f605b36
children 354ae98947b5
files src/xfns.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Fri May 30 05:11:26 1997 +0000
+++ b/src/xfns.c	Fri May 30 05:13:47 1997 +0000
@@ -1011,8 +1011,8 @@
       x_uncatch_errors (FRAME_X_DISPLAY (f), count);
     }
 
-  *xptr = win_x;
-  *yptr = win_y;
+  *xptr = win_x - f->output_data.x->border_width;
+  *yptr = win_y - f->output_data.x->border_width;
 }
 
 /* Insert a description of internally-recorded parameters of frame X