From: Karl Heuer Date: Mon, 14 Mar 1994 22:30:12 +0000 (+0000) Subject: (Fhandle_switch_frame): Ignore switch to dead frame. X-Git-Tag: emacs-19.34~9500 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=09907c3a85887a5d1ea230e317ee7b5c529946b8;p=emacs.git (Fhandle_switch_frame): Ignore switch to dead frame. --- diff --git a/src/frame.c b/src/frame.c index e7bdc953fb3..6a422d037a2 100644 --- a/src/frame.c +++ b/src/frame.c @@ -363,7 +363,12 @@ to that frame.") && CONSP (XCONS (frame)->cdr)) frame = XCONS (XCONS (frame)->cdr)->car; - CHECK_LIVE_FRAME (frame, 0); + /* This used to say CHECK_LIVE_FRAME, but apparently it's possible for + a switch-frame event to arrive after a frame is no longer live, + especially when deleting the initial frame during startup. */ + CHECK_FRAME (frame, 0); + if (! FRAME_LIVE_P (XFRAME (frame))) + return Qnil; if (selected_frame == XFRAME (frame)) return frame;