[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/src frame.c
From: |
Adrian Robert |
Subject: |
[Emacs-diffs] emacs/src frame.c |
Date: |
Mon, 18 May 2009 08:01:51 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Adrian Robert <arobert> 09/05/18 08:01:51
Modified files:
src : frame.c
Log message:
* 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.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/frame.c?cvsroot=emacs&r1=1.417&r2=1.418
Patches:
Index: frame.c
===================================================================
RCS file: /sources/emacs/emacs/src/frame.c,v
retrieving revision 1.417
retrieving revision 1.418
diff -u -b -r1.417 -r1.418
--- frame.c 4 May 2009 19:43:22 -0000 1.417
+++ frame.c 18 May 2009 08:01:51 -0000 1.418
@@ -867,8 +867,12 @@
Fselect_window (XFRAME (frame)->selected_window, norecord);
#ifdef NS_IMPL_COCOA
- /* term gets no other notification of this */
- if (for_deletion)
+ /* Under NS, there is no system mechanism for choosing a new window to be
+ selected -- it is left to application code. So the portion of THIS
+ application interfacing with NS needs to know about it. */
+ if (for_deletion && FRAME_VISIBLE_P (XFRAME (selected_frame))
+ && FRAME_LIVE_P (XFRAME (selected_frame))
+ && ! FRAME_ICONIFIED_P (XFRAME (selected_frame)))
Fraise_frame(Qnil);
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs/src frame.c,
Adrian Robert <=