(check_x_display_info): Don't use selected_frame if it is dead.

This commit is contained in:
Richard M. Stallman 1998-10-10 15:07:08 +00:00
parent 3f8ab7bddc
commit 0ec56a8056

View file

@ -264,7 +264,8 @@ check_x_display_info (frame)
{
if (NILP (frame))
{
if (FRAME_X_P (selected_frame))
if (FRAME_X_P (selected_frame)
&& FRAME_LIVE_P (selected_frame))
return FRAME_X_DISPLAY_INFO (selected_frame);
else if (x_display_list != 0)
return x_display_list;