diff options
Diffstat (limited to 'src')
| -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)); |