changeset 12111:832023e90d4d

(x_real_positions): Uncatch and recatch X errors in the loop.
author Karl Heuer <kwzh@gnu.org>
date Wed, 07 Jun 1995 21:02:00 +0000
parents d7d7f15f3a92
children 841aa5ac0f46
files src/xfns.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Wed Jun 07 21:00:01 1995 +0000
+++ b/src/xfns.c	Wed Jun 07 21:02:00 1995 +0000
@@ -928,9 +928,10 @@
   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 @@
 	 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));