Mercurial > emacs
comparison src/keyboard.c @ 37603:df85a76987bb
(delete_kboard): Handle the case that selected_frame
has been deleted in the course of x_connection_closed.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 07 May 2001 13:43:10 +0000 |
parents | a5f0e09ecc67 |
children | 4fe5b946a4af |
comparison
equal
deleted
inserted
replaced
37602:cf908fe10fe5 | 37603:df85a76987bb |
---|---|
10030 if (*kbp == NULL) | 10030 if (*kbp == NULL) |
10031 abort (); | 10031 abort (); |
10032 *kbp = kb->next_kboard; | 10032 *kbp = kb->next_kboard; |
10033 | 10033 |
10034 /* Prevent a dangling reference to KB. */ | 10034 /* Prevent a dangling reference to KB. */ |
10035 if (kb == current_kboard) | 10035 if (kb == current_kboard |
10036 { | 10036 && FRAMEP (selected_frame) |
10037 current_kboard = SELECTED_FRAME ()->kboard; | 10037 && FRAME_LIVE_P (XFRAME (selected_frame))) |
10038 { | |
10039 current_kboard = XFRAME (selected_frame)->kboard; | |
10038 if (current_kboard == kb) | 10040 if (current_kboard == kb) |
10039 abort (); | 10041 abort (); |
10040 } | 10042 } |
10041 | 10043 |
10042 wipe_kboard (kb); | 10044 wipe_kboard (kb); |