diff src/xfns.c @ 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 7c919d7f8217
children 0a684c540f66
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