From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#4566: 23, NS: frames re-appear when app switching Date: Sat, 4 Dec 2021 22:03:30 +0000 Message-ID: References: <84E3245F-C845-4397-B790-4442243E4098@gmail.com> <87r1as13dv.fsf@gnus.org> <87ee6syr0i.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16747"; mail-complaints-to="usenet@ciao.gmane.io" Cc: David Reitter , 4566@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 04 23:04:26 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtd8r-00044m-C8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 23:04:25 +0100 Original-Received: from localhost ([::1]:38294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtd8q-0006ar-FR for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 17:04:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtd8U-0006aR-Cw for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 17:04:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtd8U-0003PD-5N for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 17:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtd8T-00067A-Oc for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 17:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Dec 2021 22:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4566 X-GNU-PR-Package: emacs Original-Received: via spool by 4566-submit@debbugs.gnu.org id=B4566.163865542323466 (code B ref 4566); Sat, 04 Dec 2021 22:04:01 +0000 Original-Received: (at 4566) by debbugs.gnu.org; 4 Dec 2021 22:03:43 +0000 Original-Received: from localhost ([127.0.0.1]:55558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtd8B-00066Q-Hz for submit@debbugs.gnu.org; Sat, 04 Dec 2021 17:03:43 -0500 Original-Received: from outbound.soverin.net ([116.202.126.228]:50961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtd88-00065w-1N for 4566@debbugs.gnu.org; Sat, 04 Dec 2021 17:03:41 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 65DA5857; Sat, 4 Dec 2021 22:03:33 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1638655412; bh=wOsUwuDfO2UkumWSNPmkQrHRoYuR4KXE5C590eGvu5A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FvmK2Sstb9EvD2mh+DWeS2HbUfnZp2IgadTw18KBcMuflGuPZPhb9OvP95Kb3BdNK oX/Br9ESgVaJOjlTo178JflDdXA6GllBM1uyMMt8W0Clc/XPFWbP6QKcFg8c5ef28a Gw21SwQG8525zxcl+UzN8uqRaVVuuCUmdCDLRhsWgd1HoEZ6ZY0qRMXej1ambCZCM9 +b93cuVFVnUVA4nrLM6g/i7J5mhJR9TUeLT+wc+QSm35KXXcEnjB576YGB3LptCmCI n5cLosKu8BgWF/jPABbI4mamb4qb/WmJNzWCmsfwNhJZylv/DARBG1lfx3JdUygct+ 6NKh0Vu3L25HQ== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95-RC2) (envelope-from ) id 1mtd7y-0016B7-28; Sat, 04 Dec 2021 22:03:30 +0000 Mail-Followup-To: Alan Third , Lars Ingebrigtsen , David Reitter , 4566@debbugs.gnu.org Content-Disposition: inline In-Reply-To: <87ee6syr0i.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221528 Archived-At: On Sat, Dec 04, 2021 at 10:55:09PM +0100, Lars Ingebrigtsen wrote: > Alan Third 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