From b0ebba58cb56dbec78b5955d9263ce742f66757a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 30 May 1997 05:13:47 +0000 Subject: (x_real_positions): Subtract border width from results. --- src/xfns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.1