From 0ec56a80564f2053e28e0da56e60ea50f50e5241 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 10 Oct 1998 15:07:08 +0000 Subject: [PATCH] (check_x_display_info): Don't use selected_frame if it is dead. --- src/xfns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xfns.c b/src/xfns.c index 48bda27702a..f6395dc0fb4 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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; -- 2.39.2