diff options
| author | Karl Heuer | 1995-06-07 21:02:00 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-06-07 21:02:00 +0000 |
| commit | ca7bac79415ec1ac73875fa86245525ef895ea4d (patch) | |
| tree | b57348beba121e9730fe27a5a2ceffe9ff9c3aa2 | |
| parent | 316784fbf8587df194458ea4b7238683d47c4c8c (diff) | |
| download | emacs-ca7bac79415ec1ac73875fa86245525ef895ea4d.tar.gz emacs-ca7bac79415ec1ac73875fa86245525ef895ea4d.zip | |
(x_real_positions): Uncatch and recatch X errors in the loop.
| -rw-r--r-- | src/xfns.c | 5 |
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)); |