comparison src/xfns.c @ 15495:94467271b641

(x_real_positions): Don't call x_uncatch_errors twice.
author Richard M. Stallman <rms@gnu.org>
date Mon, 24 Jun 1996 01:29:37 +0000
parents ab8c81feacf9
children 3d03a3fb8757
comparison
equal deleted inserted replaced
15494:a544bb3eea53 15495:94467271b641
1001 to become invalid by the time we call XTranslateCoordinates. 1001 to become invalid by the time we call XTranslateCoordinates.
1002 That can happen when you restart some window managers. 1002 That can happen when you restart some window managers.
1003 If so, we get an error in XTranslateCoordinates. 1003 If so, we get an error in XTranslateCoordinates.
1004 Detect that and try the whole thing over. */ 1004 Detect that and try the whole thing over. */
1005 if (! x_had_errors_p (FRAME_X_DISPLAY (f))) 1005 if (! x_had_errors_p (FRAME_X_DISPLAY (f)))
1006 break; 1006 {
1007 x_uncatch_errors (FRAME_X_DISPLAY (f));
1008 break;
1009 }
1007 1010
1008 x_uncatch_errors (FRAME_X_DISPLAY (f)); 1011 x_uncatch_errors (FRAME_X_DISPLAY (f));
1009 } 1012 }
1010
1011 x_uncatch_errors (FRAME_X_DISPLAY (f));
1012 1013
1013 *xptr = f->output_data.x->left_pos - win_x; 1014 *xptr = f->output_data.x->left_pos - win_x;
1014 *yptr = f->output_data.x->top_pos - win_y; 1015 *yptr = f->output_data.x->top_pos - win_y;
1015 } 1016 }
1016 1017