diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c index de857af0273..afcc96cf6f7 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -867,8 +867,12 @@ do_switch_frame (frame, track, for_deletion, norecord) | |||
| 867 | Fselect_window (XFRAME (frame)->selected_window, norecord); | 867 | Fselect_window (XFRAME (frame)->selected_window, norecord); |
| 868 | 868 | ||
| 869 | #ifdef NS_IMPL_COCOA | 869 | #ifdef NS_IMPL_COCOA |
| 870 | /* term gets no other notification of this */ | 870 | /* Under NS, there is no system mechanism for choosing a new window to be |
| 871 | if (for_deletion) | 871 | selected -- it is left to application code. So the portion of THIS |
| 872 | application interfacing with NS needs to know about it. */ | ||
| 873 | if (for_deletion && FRAME_VISIBLE_P (XFRAME (selected_frame)) | ||
| 874 | && FRAME_LIVE_P (XFRAME (selected_frame)) | ||
| 875 | && ! FRAME_ICONIFIED_P (XFRAME (selected_frame))) | ||
| 872 | Fraise_frame(Qnil); | 876 | Fraise_frame(Qnil); |
| 873 | #endif | 877 | #endif |
| 874 | 878 | ||