From: Richard M. Stallman Date: Fri, 30 May 1997 05:13:47 +0000 (+0000) Subject: (x_real_positions): Subtract border width from results. X-Git-Tag: emacs-20.1~1910 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=67f41c5d961722e6f13e8b73f1ae48c5f9c85939;p=emacs.git (x_real_positions): Subtract border width from results. --- diff --git a/src/xfns.c b/src/xfns.c index 7a31b26ec5e..6b97a7d1615 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -1011,8 +1011,8 @@ x_real_positions (f, xptr, yptr) 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