aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget.c
diff options
context:
space:
mode:
authorChong Yidong2007-03-22 14:57:13 +0000
committerChong Yidong2007-03-22 14:57:13 +0000
commit7f70e147d01d933bbefdc8863e1ea0b8b1ab386c (patch)
tree8a1ff102175fbbe447b024bb589a50f8707153b8 /src/widget.c
parent96356799d2d64464fff3d3db8145be45103a3f63 (diff)
downloademacs-7f70e147d01d933bbefdc8863e1ea0b8b1ab386c.tar.gz
emacs-7f70e147d01d933bbefdc8863e1ea0b8b1ab386c.zip
(EmacsFrameSetCharSize): Catch X errors.
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widget.c b/src/widget.c
index c6ba3be468b..e6388a7d158 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -953,9 +953,11 @@ EmacsFrameSetCharSize (widget, columns, rows)
953 Xt when the default font is changed. Tell Xt not to wait, 953 Xt when the default font is changed. Tell Xt not to wait,
954 depending on the value of the frame parameter 954 depending on the value of the frame parameter
955 `wait-for-wm'. */ 955 `wait-for-wm'. */
956 x_catch_errors (FRAME_X_DISPLAY (f));
956 XtVaSetValues (f->output_data.x->widget, 957 XtVaSetValues (f->output_data.x->widget,
957 XtNwaitForWm, (XtArgVal) f->output_data.x->wait_for_wm, 958 XtNwaitForWm, (XtArgVal) f->output_data.x->wait_for_wm,
958 NULL); 959 NULL);
960 x_uncatch_errors ();
959 961
960 /* Workaround: When a SIGIO or SIGALRM occurs while Xt is 962 /* Workaround: When a SIGIO or SIGALRM occurs while Xt is
961 waiting for a ConfigureNotify event (see above), this leads 963 waiting for a ConfigureNotify event (see above), this leads
@@ -972,6 +974,7 @@ EmacsFrameSetCharSize (widget, columns, rows)
972 as is because I think it can't do any harm. */ 974 as is because I think it can't do any harm. */
973 /* In April 2002, simon.marshall@misys.com reports the problem 975 /* In April 2002, simon.marshall@misys.com reports the problem
974 seems not to occur any longer. */ 976 seems not to occur any longer. */
977 x_catch_errors (FRAME_X_DISPLAY (f));
975 XtVaSetValues (f->output_data.x->widget, 978 XtVaSetValues (f->output_data.x->widget,
976 XtNheight, (XtArgVal) (outer_widget_height + hdelta), 979 XtNheight, (XtArgVal) (outer_widget_height + hdelta),
977 XtNwidth, (XtArgVal) (outer_widget_width + wdelta), 980 XtNwidth, (XtArgVal) (outer_widget_width + wdelta),
@@ -984,6 +987,8 @@ EmacsFrameSetCharSize (widget, columns, rows)
984 XtNheight, (XtArgVal) pixel_height, 987 XtNheight, (XtArgVal) pixel_height,
985 XtNwidth, (XtArgVal) pixel_width, 988 XtNwidth, (XtArgVal) pixel_width,
986 NULL); 989 NULL);
990 x_uncatch_errors ();
991
987#ifdef SIGIO 992#ifdef SIGIO
988 sigunblock (sigmask (SIGIO)); 993 sigunblock (sigmask (SIGIO));
989#endif 994#endif