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 21:51:42 +0000 Message-ID: References: <84E3245F-C845-4397-B790-4442243E4098@gmail.com> <87r1as13dv.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="38459"; 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 22:52:14 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 1mtcx2-0009mc-JV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 22:52:13 +0100 Original-Received: from localhost ([::1]:59104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtcx0-0000pq-No for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 16:52:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtcws-0000oa-94 for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:52:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43976) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtcwr-0008J7-W7 for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtcwr-0003Zd-QQ for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:52: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 21:52: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.163865471413723 (code B ref 4566); Sat, 04 Dec 2021 21:52:01 +0000 Original-Received: (at 4566) by debbugs.gnu.org; 4 Dec 2021 21:51:54 +0000 Original-Received: from localhost ([127.0.0.1]:55522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcwj-0003ZG-Sd for submit@debbugs.gnu.org; Sat, 04 Dec 2021 16:51:54 -0500 Original-Received: from outbound.soverin.net ([116.202.126.228]:50519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcwi-0003Z3-Af for 4566@debbugs.gnu.org; Sat, 04 Dec 2021 16:51:53 -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 1FEFF857; Sat, 4 Dec 2021 21:51:46 +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=1638654705; bh=0KJSGX9EWqewlTBhjS1Td1OfispQB94H4g3vi6/DWog=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J/qKawhiW5M+2Ydnc47imh9c8aTroHD3Tspdvi1x2sRPfF6FAxVtCEOB8T77Qv/rL 9bONUEFOGceDr7ndPjX/yt1IunOOVgKrw+/wQhGUiIqCcfZ9MVU7+dp7dlfwD5gHRw JTjigxY0+odfzVLl/ee9Ag6E1JYqXJe4AKsWOkCRAOZAMUIOlJNaipg61X4l74SDv7 NMvFwi5Zc7gWJu2zJ5F9oOGJMsOMzehHwhvZtxYOmnbNdyMsDBphgr9qp/Oua49tgZ DUNOClAbQvw+TFKUOvNjbY82TOYCcypM2eQiT4T4DlEhlbbFFH4WzPlJ4EaQkGkS5Q 1iA6pwnZX6mOg== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95-RC2) (envelope-from ) id 1mtcwY-00161i-N7; Sat, 04 Dec 2021 21:51:42 +0000 Mail-Followup-To: Alan Third , Lars Ingebrigtsen , David Reitter , 4566@debbugs.gnu.org Content-Disposition: inline In-Reply-To: <87r1as13dv.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:221524 Archived-At: On Sat, Dec 04, 2021 at 10:11:56PM +0100, Lars Ingebrigtsen wrote: > David Reitter writes: > > > When starting up the NS port (trunk, on OS X 10.6.1), and then hiding > > the frame: > > > > (make-frame-invisible nil t) > > > > and then switching away and back to Emacs (Command-Tab, Command-Tab), > > the frame magically re-appears. > > It shouldn't do that (it's non-standard). > > (I'm going through old bug reports that unfortunately weren't resolved > at the time.) > > This behaviour is still present in Emacs 29, and it does seem to be > non-standard (i.e., other Macos programs don't seem to do this?) > > Perhaps Alan has an opinion here; added to the CCs. 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. As far as I can tell we don't do anything particularly unusual. Hidden windows other than the last selected one don't magically reappear, so I suspect what we're seeing is macOS bringing the "main" window to the front when we switch to the application. 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. -- Alan Third