changeset 23411:879b88bb7ab2

(check_x_display_info): Don't use selected_frame if it is dead.
author Richard M. Stallman <rms@gnu.org>
date Sat, 10 Oct 1998 15:07:08 +0000
parents 02cc44ea2455
children 2ce0e36402ff
files src/xfns.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sat Oct 10 14:49:28 1998 +0000
+++ b/src/xfns.c	Sat Oct 10 15:07:08 1998 +0000
@@ -264,7 +264,8 @@
 {
   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;