Mercurial > emacs
comparison src/frame.c @ 103244:1fd5de3f20cd
* frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check whether selected frame is viable before raising it (based on patch by David Reitter), and improve commentary.
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Mon, 18 May 2009 08:01:51 +0000 |
parents | cfd0f4bd9e6e |
children | 26fe9add7299 |
comparison
equal
deleted
inserted
replaced
103243:c5cff5d1a017 | 103244:1fd5de3f20cd |
---|---|
865 last_nonminibuf_frame = XFRAME (selected_frame); | 865 last_nonminibuf_frame = XFRAME (selected_frame); |
866 | 866 |
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 |
875 /* We want to make sure that the next event generates a frame-switch | 879 /* We want to make sure that the next event generates a frame-switch |
876 event to the appropriate frame. This seems kludgy to me, but | 880 event to the appropriate frame. This seems kludgy to me, but |