aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-06-07 21:02:00 +0000
committerKarl Heuer1995-06-07 21:02:00 +0000
commitca7bac79415ec1ac73875fa86245525ef895ea4d (patch)
treeb57348beba121e9730fe27a5a2ceffe9ff9c3aa2 /src
parent316784fbf8587df194458ea4b7238683d47c4c8c (diff)
downloademacs-ca7bac79415ec1ac73875fa86245525ef895ea4d.tar.gz
emacs-ca7bac79415ec1ac73875fa86245525ef895ea4d.zip
(x_real_positions): Uncatch and recatch X errors in the loop.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 104ddcd1b80..f71c99460f4 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -928,9 +928,10 @@ x_real_positions (f, xptr, yptr)
928 Window *tmp_children; 928 Window *tmp_children;
929 int tmp_nchildren; 929 int tmp_nchildren;
930 930
931 x_catch_errors (FRAME_X_DISPLAY (f));
932 while (1) 931 while (1)
933 { 932 {
933 x_catch_errors (FRAME_X_DISPLAY (f));
934
934 XQueryTree (FRAME_X_DISPLAY (f), outer, &tmp_root_window, 935 XQueryTree (FRAME_X_DISPLAY (f), outer, &tmp_root_window,
935 &f->display.x->parent_desc, 936 &f->display.x->parent_desc,
936 &tmp_children, &tmp_nchildren); 937 &tmp_children, &tmp_nchildren);
@@ -971,6 +972,8 @@ x_real_positions (f, xptr, yptr)
971 Detect that and try the whole thing over. */ 972 Detect that and try the whole thing over. */
972 if (! x_had_errors_p (FRAME_X_DISPLAY (f))) 973 if (! x_had_errors_p (FRAME_X_DISPLAY (f)))
973 break; 974 break;
975
976 x_uncatch_errors (FRAME_X_DISPLAY (f));
974 } 977 }
975 978
976 x_uncatch_errors (FRAME_X_DISPLAY (f)); 979 x_uncatch_errors (FRAME_X_DISPLAY (f));