unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: David Reitter <david.reitter@gmail.com>, 4566@debbugs.gnu.org
Subject: bug#4566: 23, NS: frames re-appear when app switching
Date: Sat, 4 Dec 2021 22:03:30 +0000	[thread overview]
Message-ID: <YavlsotQSK7xlTjy@idiocy.org> (raw)
In-Reply-To: <87ee6syr0i.fsf@gnus.org>

On Sat, Dec 04, 2021 at 10:55:09PM +0100, Lars Ingebrigtsen wrote:
> Alan Third <alan@idiocy.org> writes:
> 
> > I don't believe other macOS applications let you make arbitrary
> > windows "invisible" like Emacs does. Minimising windows and "hiding"
> > the application work exactly like other macOS apps I've tried.
> 
> Ah, right.  
> 
> > We can't resign the main window, afaik. I suppose we could just delete
> > the windows completely when we make them invisible instead of just,
> > y'know, making them invisible.
> 
> I think that'd be even more unexpected.

It may not be as unexpected as you think. macOS windows are made up of
multiple components and when we change between various states, like
switching to fullscreen, we destroy the old NSWindow, create a new one
and then apply the old NSView to it. Maybe not quite in that order. :D

It may be possible to just remove the NSWindow when we make a frame
invisible and hang onto the NSView. It might not be practical, and I'm
not sure if it will really make any difference. I suspect David wanted
to make the frame invisible as a work-around for the bug we fixed
recently where when the last frame was closed the menus and dock icon
were visible but failed to respond.
-- 
Alan Third





  reply	other threads:[~2021-12-04 22:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <84E3245F-C845-4397-B790-4442243E4098@gmail.com>
2021-12-04 21:11 ` bug#4566: 23, NS: frames re-appear when app switching Lars Ingebrigtsen
2021-12-04 21:51   ` Alan Third
2021-12-04 21:55     ` Lars Ingebrigtsen
2021-12-04 22:03       ` Alan Third [this message]
2021-12-04 22:13         ` Lars Ingebrigtsen
2021-12-05  2:02           ` David Reitter

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=YavlsotQSK7xlTjy@idiocy.org \
    --to=alan@idiocy.org \
    --cc=4566@debbugs.gnu.org \
    --cc=david.reitter@gmail.com \
    --cc=larsi@gnus.org \
    /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).