From: David Reitter <david.reitter@gmail.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>,
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: martin rudalics <rudalics@gmx.at>,
Lennart Borgman <lennart.borgman@gmail.com>,
Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Frame ordering
Date: Tue, 15 Jun 2010 10:33:50 -0400 [thread overview]
Message-ID: <BAC1BC2E-97C0-46A3-B00B-6DDA00C32DD2@gmail.com> (raw)
In-Reply-To: <jwviq5ka0p3.fsf-monnier+emacs@gnu.org>
On Jun 15, 2010, at 9:25 AM, Stefan Monnier wrote:
>
> I think we first need to figure out how to fix the bug that the
> Fraise_frame is trying to workaround. And then we'll see if further
> changes are required.
I'm not sure how fixing Fdelete_frame can possibly address the issue concerning the next/previous-frame order.
Of course you're right that this is odd and that there probably is a bug somewhere.
delete_frame() first selects another frame before running the terminal's delete_frame_hook. Does this make the new frame the NS key frame?
If we are not deleting a key frame, I reckon NS will not select another frame to make it key. [NSWindow close] is called in nsterm.m's x_destroy_window()), and I think it should change the key frame if the key frame is being deleted, as [NSWindow orderOut] is documented to do.
The Appkit port does this only slightly differently:
/* AppKit version of mac_dispose_frame_window, which is implemented
as -[NSWindow close], will change the focus to the next window
during its call. So, unlike other platforms, we clean up the
focus-related variables before calling mac_dispose_frame_window. */
mac_dispose_frame_window (f)
struct frame *f;
{
NSWindow *window = FRAME_MAC_WINDOW (f);
[window close];
}
However, the delete_frame() function in frame.c is the same - it seems to select some other frame according to Vframe_list:
On Jun 15, 2010, at 5:24 AM, YAMAMOTO Mitsuharu wrote:
>
> That would be the behavior of "letting the window manager decide",
> i.e., no explicit code at the application side. The Mac port also
> behaves like this.
Can you point out how your port does that? I can't find it. (If it is a recent change, let me know and I'll update my Appkit branch.)
next prev parent reply other threads:[~2010-06-15 14:33 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E9FAA849-1E93-4DD7-AE9D-5E644D990202@univie.ac.at>
2010-06-11 12:29 ` Frame ordering David Reitter
2010-06-11 13:22 ` martin rudalics
2010-06-11 13:55 ` David Reitter
2010-06-11 17:13 ` martin rudalics
2010-06-11 21:04 ` David Reitter
2010-06-12 8:01 ` martin rudalics
2010-06-13 20:16 ` David Reitter
2010-06-14 0:30 ` Stefan Monnier
2010-06-14 2:42 ` David Reitter
2010-06-14 3:30 ` YAMAMOTO Mitsuharu
2010-06-14 6:50 ` martin rudalics
2010-06-14 6:55 ` Lennart Borgman
2010-06-14 7:35 ` YAMAMOTO Mitsuharu
2010-06-14 8:24 ` martin rudalics
2010-06-14 8:31 ` YAMAMOTO Mitsuharu
2010-06-14 9:20 ` martin rudalics
2010-06-14 9:28 ` YAMAMOTO Mitsuharu
2010-06-14 13:29 ` Stefan Monnier
2010-06-14 3:52 ` YAMAMOTO Mitsuharu
2010-06-14 15:52 ` David Reitter
2010-06-14 16:05 ` Lennart Borgman
2010-06-14 16:29 ` David Reitter
2010-06-14 16:47 ` Lennart Borgman
2010-06-14 17:10 ` Jan Djärv
2010-06-14 17:15 ` Lennart Borgman
2010-06-14 17:14 ` David Reitter
2010-06-14 17:19 ` Lennart Borgman
2010-06-14 18:49 ` Stefan Monnier
2010-06-15 3:54 ` David Reitter
2010-06-15 13:25 ` Stefan Monnier
2010-06-15 14:33 ` David Reitter [this message]
2010-06-15 9:24 ` YAMAMOTO Mitsuharu
2010-06-14 6:50 ` martin rudalics
2010-06-12 4:12 ` David Reitter
2010-06-12 5:42 ` YAMAMOTO Mitsuharu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAC1BC2E-97C0-46A3-B00B-6DDA00C32DD2@gmail.com \
--to=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
--cc=mituharu@math.s.chiba-u.ac.jp \
--cc=monnier@IRO.UMontreal.CA \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).