From 1d5bcd55d51e0621d9344ff9445b1cbc49eea79a Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Sat, 19 May 2007 05:08:05 +0000 Subject: [PATCH] (x_calc_absolute_position): Add BLOCK_INPUT around mac_get_window_bounds. --- src/ChangeLog | 5 +++++ src/macterm.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 55cd3a2f60b..9e0ec429552 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-05-19 YAMAMOTO Mitsuharu + + * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around + mac_get_window_bounds. + 2007-05-17 Glenn Morris * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD. diff --git a/src/macterm.c b/src/macterm.c index 1acb521f47b..9c1a151f4a9 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -6084,7 +6084,9 @@ x_calc_absolute_position (f) /* Find the offsets of the outside upper-left corner of the inner window, with respect to the outer window. */ + BLOCK_INPUT; mac_get_window_bounds (f, &inner, &outer); + UNBLOCK_INPUT; width_diff = (outer.right - outer.left) - (inner.right - inner.left); height_diff = (outer.bottom - outer.top) - (inner.bottom - inner.top); -- 2.39.5