Commit 09907c3a authored by Karl Heuer's avatar Karl Heuer

(Fhandle_switch_frame): Ignore switch to dead frame.

parent 4ef7b413
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment