aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-05-19 05:08:05 +0000
committerYAMAMOTO Mitsuharu2007-05-19 05:08:05 +0000
commit1d5bcd55d51e0621d9344ff9445b1cbc49eea79a (patch)
treee2d1150dddbf7841ae7d6899f32db9b17b05af91
parentde9606f01da32e4070bf7908ef4cf9ba835e4b6f (diff)
downloademacs-1d5bcd55d51e0621d9344ff9445b1cbc49eea79a.tar.gz
emacs-1d5bcd55d51e0621d9344ff9445b1cbc49eea79a.zip
(x_calc_absolute_position): Add BLOCK_INPUT around
mac_get_window_bounds.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/macterm.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 55cd3a2f60b..9e0ec429552 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
4 mac_get_window_bounds.
5
12007-05-17 Glenn Morris <rgm@gnu.org> 62007-05-17 Glenn Morris <rgm@gnu.org>
2 7
3 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD. 8 * 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)
6084 6084
6085 /* Find the offsets of the outside upper-left corner of 6085 /* Find the offsets of the outside upper-left corner of
6086 the inner window, with respect to the outer window. */ 6086 the inner window, with respect to the outer window. */
6087 BLOCK_INPUT;
6087 mac_get_window_bounds (f, &inner, &outer); 6088 mac_get_window_bounds (f, &inner, &outer);
6089 UNBLOCK_INPUT;
6088 6090
6089 width_diff = (outer.right - outer.left) - (inner.right - inner.left); 6091 width_diff = (outer.right - outer.left) - (inner.right - inner.left);
6090 height_diff = (outer.bottom - outer.top) - (inner.bottom - inner.top); 6092 height_diff = (outer.bottom - outer.top) - (inner.bottom - inner.top);