From: Karl Heuer Date: Wed, 7 Jun 1995 21:02:00 +0000 (+0000) Subject: (x_real_positions): Uncatch and recatch X errors in the loop. X-Git-Tag: emacs-19.34~3747 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ca7bac79415ec1ac73875fa86245525ef895ea4d;p=emacs.git (x_real_positions): Uncatch and recatch X errors in the loop. --- 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) Window *tmp_children; int tmp_nchildren; - x_catch_errors (FRAME_X_DISPLAY (f)); while (1) { + x_catch_errors (FRAME_X_DISPLAY (f)); + XQueryTree (FRAME_X_DISPLAY (f), outer, &tmp_root_window, &f->display.x->parent_desc, &tmp_children, &tmp_nchildren); @@ -971,6 +972,8 @@ x_real_positions (f, xptr, yptr) Detect that and try the whole thing over. */ if (! x_had_errors_p (FRAME_X_DISPLAY (f))) break; + + x_uncatch_errors (FRAME_X_DISPLAY (f)); } x_uncatch_errors (FRAME_X_DISPLAY (f));