From c00980655bc15ca019fd6c559c69601be18f2407 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 9 Nov 2010 15:55:52 +0200 Subject: [PATCH] xfns.c (x_real_positions): Fix declaration-after-statement problem. --- src/ChangeLog | 5 +++++ src/xfns.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index cba2b4b478d..c52c84961fa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-11-09 Eli Zaretskii + + * xfns.c (x_real_positions): Fix declaration-after-statement + problem. + 2010-11-05 Chong Yidong * image.c (free_image): Don't garbage the frame here, since this diff --git a/src/xfns.c b/src/xfns.c index b65323f199f..2e2bda49246 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -645,11 +645,10 @@ x_real_positions (f, xptr, yptr) { int ign; Window rootw; + long *fe = (long *)tmp_data; XGetGeometry (FRAME_X_DISPLAY (f), win, &rootw, &real_x, &real_y, &ign, &ign, &ign, &ign); - long *fe = (long *)tmp_data; - outer_x = -fe[0]; outer_y = -fe[2]; real_x -= fe[0]; -- 2.39.2