Mercurial > hg > xemacs-beta
comparison src/frame-x.c @ 3415:168e8d8a55be
[xemacs-hg @ 2006-05-22 22:07:05 by aidan]
Fix a hang in read-from-minibuffer if the X display disappears
author | aidan |
---|---|
date | Mon, 22 May 2006 22:07:07 +0000 |
parents | 374186f156d5 |
children | 3aab51033467 |
comparison
equal
deleted
inserted
replaced
3414:aa21e817df76 | 3415:168e8d8a55be |
---|---|
743 Bool height_specified_p = False; | 743 Bool height_specified_p = False; |
744 Bool x_position_specified_p = False; | 744 Bool x_position_specified_p = False; |
745 Bool y_position_specified_p = False; | 745 Bool y_position_specified_p = False; |
746 Bool internal_border_width_specified = False; | 746 Bool internal_border_width_specified = False; |
747 Lisp_Object tail; | 747 Lisp_Object tail; |
748 Widget w = FRAME_X_TEXT_WIDGET (f); | 748 Widget w; |
749 | |
750 /* We can be called after the X IO error handler has seen a broken pipe on | |
751 the relevant display. Don't do anything in that case. */ | |
752 if (!FRAME_LIVE_P (f) || DEVICE_X_BEING_DELETED (XDEVICE (FRAME_DEVICE (f)))) | |
753 return; | |
754 | |
755 w = FRAME_X_TEXT_WIDGET (f); | |
749 | 756 |
750 for (tail = plist; !NILP (tail); tail = Fcdr (Fcdr (tail))) | 757 for (tail = plist; !NILP (tail); tail = Fcdr (Fcdr (tail))) |
751 { | 758 { |
752 Lisp_Object prop = Fcar (tail); | 759 Lisp_Object prop = Fcar (tail); |
753 Lisp_Object val = Fcar (Fcdr (tail)); | 760 Lisp_Object val = Fcar (Fcdr (tail)); |