aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdrian Robert2009-05-18 08:01:51 +0000
committerAdrian Robert2009-05-18 08:01:51 +0000
commit06302656f363621255dc99dc1be5dcf89a943cde (patch)
tree0f1a7dda8e0ce84a2149e60ba9b65ff2b954eff2 /src
parent1564e6499ec27783f38f16bc75e67df484f274e6 (diff)
downloademacs-06302656f363621255dc99dc1be5dcf89a943cde.tar.gz
emacs-06302656f363621255dc99dc1be5dcf89a943cde.zip
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c8
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