Mercurial > emacs
comparison src/frame.c @ 6352:6f48bd9145f9
(Fhandle_switch_frame): Ignore switch to dead frame.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 14 Mar 1994 22:30:12 +0000 |
parents | 24d32fc223d2 |
children | 8d624c058f31 |
comparison
equal
deleted
inserted
replaced
6351:377e82e70f7e | 6352:6f48bd9145f9 |
---|---|
361 if (CONSP (frame) | 361 if (CONSP (frame) |
362 && EQ (XCONS (frame)->car, Qswitch_frame) | 362 && EQ (XCONS (frame)->car, Qswitch_frame) |
363 && CONSP (XCONS (frame)->cdr)) | 363 && CONSP (XCONS (frame)->cdr)) |
364 frame = XCONS (XCONS (frame)->cdr)->car; | 364 frame = XCONS (XCONS (frame)->cdr)->car; |
365 | 365 |
366 CHECK_LIVE_FRAME (frame, 0); | 366 /* This used to say CHECK_LIVE_FRAME, but apparently it's possible for |
367 a switch-frame event to arrive after a frame is no longer live, | |
368 especially when deleting the initial frame during startup. */ | |
369 CHECK_FRAME (frame, 0); | |
370 if (! FRAME_LIVE_P (XFRAME (frame))) | |
371 return Qnil; | |
367 | 372 |
368 if (selected_frame == XFRAME (frame)) | 373 if (selected_frame == XFRAME (frame)) |
369 return frame; | 374 return frame; |
370 | 375 |
371 /* If a frame's focus has been redirected toward the currently | 376 /* If a frame's focus has been redirected toward the currently |