From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#25408: Remove Decorations Around Emacs Frame (Windows OS) Date: Thu, 13 Apr 2017 11:30:26 +0100 Message-ID: <20170413103026.GA96045@breton.holly.idiocy.org> References: <5875EF34.20507@gmx.at> <9efbe1e3-e8aa-f056-bc5c-5a41f10b6d42@gmail.com> <58996EED.6030601@gmx.at> <3d34793f-4b7c-d4ea-74ec-49ce84214cc8@gmail.com> <589F1F58.1050807@gmx.at> <20170412173858.GB82486@breton.holly.idiocy.org> <58EE7C4B.90205@gmx.at> <20170412195121.GA95643@breton.holly.idiocy.org> <58EF2462.9010806@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1492079471 24385 195.159.176.226 (13 Apr 2017 10:31:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Apr 2017 10:31:11 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: Arthur Miller , 25408@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 13 12:31:05 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyc1p-0006Bz-HK for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Apr 2017 12:31:05 +0200 Original-Received: from localhost ([::1]:48437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyc1v-00072F-CP for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Apr 2017 06:31:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyc1q-000729-ET for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2017 06:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyc1m-0006Dt-Cf for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2017 06:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46880) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyc1m-0006Dn-8N for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2017 06:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cyc1l-0001kE-U3 for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2017 06:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Apr 2017 10:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25408 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25408-submit@debbugs.gnu.org id=B25408.14920794406648 (code B ref 25408); Thu, 13 Apr 2017 10:31:01 +0000 Original-Received: (at 25408) by debbugs.gnu.org; 13 Apr 2017 10:30:40 +0000 Original-Received: from localhost ([127.0.0.1]:45079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyc1Q-0001j9-0r for submit@debbugs.gnu.org; Thu, 13 Apr 2017 06:30:40 -0400 Original-Received: from mail-wm0-f45.google.com ([74.125.82.45]:36562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyc1L-0001ij-Uc for 25408@debbugs.gnu.org; Thu, 13 Apr 2017 06:30:36 -0400 Original-Received: by mail-wm0-f45.google.com with SMTP id o81so107781357wmb.1 for <25408@debbugs.gnu.org>; Thu, 13 Apr 2017 03:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=YQqbpE/Q0VE42+90bWlgRkQdlG6UxIP3ezui0ypcHqk=; b=NBdUkzHHl0bN1TMP5xsw2TROJGLboEGBQRlOye68Hg2zY55X/5wJsEnHax/MuZZz6j plRKnkMd+qmgfAPpefFNJbcv8oSMkGuLZxHSwaZURg6lQOFps/lTbk3npWJyLluHiQxh 5chdXEJTzp1Os0SAE+w6CBvKfPr4iSCJvYwyO0KbAxg6LMk0dGPrS9oNh0j2aNEDNWx1 j8fLEnt1jvwhJcDe3wrRoS3UGuVFOtCYHOByHN2PwKDu8LFByAkmwtddmVbhKEnFaie9 JzYlU7rmajr9WgA/L9vv/1v/JMXJ5to0MvEO2myCWl+fM2Ui4Sj1YthtZVv4ymO0p+57 PnSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=YQqbpE/Q0VE42+90bWlgRkQdlG6UxIP3ezui0ypcHqk=; b=ju06VMAesgHsmnTQM13G97Ky+9N8UBIT7ya/tIxwGlXeDu6Wp2Kt0SiSUd8tClqCvq 0Jf0NzdDWAe0i9/WOtWdCHAOyaYKjN5zlaFlblwuB/G5R5ikb9NTQAEFZziPsCCCl47J 2rCLn7yOvfw7v7khVLsbpoAg/qLlXjbNcHxxnGTxLvdGS/zw3iOAb0UBc+eNUN1Wukyw NbADWWHGlXhVpZagwa/scHLt8AbA8FSA+YEcHuFNPgiBe19UPo/al4kVFz1+dKhJ08aY QyMgi66AlOoXuo5U8CpaxrJmbI7bUdqkWI5F1DGMe1+GfF4EXzs7SPaIQggSKvLB6qOQ XHoA== X-Gm-Message-State: AN3rC/6O8Q7KUfXPs4G9djReQ+jurvgyhBjEwlyYYUu25iI73TjAdGOZ j2+pb7G/wpfdUA== X-Received: by 10.28.183.70 with SMTP id h67mr2498547wmf.115.1492079429935; Thu, 13 Apr 2017 03:30:29 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-4908-57d9-2f60-ab16.holly.idiocy.org. [2001:8b0:3f8:8129:4908:57d9:2f60:ab16]) by smtp.gmail.com with ESMTPSA id t24sm1415604wra.44.2017.04.13.03.30.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Apr 2017 03:30:28 -0700 (PDT) Content-Disposition: inline In-Reply-To: <58EF2462.9010806@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131534 Archived-At: On Thu, Apr 13, 2017 at 09:10:26AM +0200, martin rudalics wrote: > >> When can you remove the decorations? Does it flicker when you do that? > > > > I mean, it *can* resize after I remove the decorations. > > I wanted to know "when" in the sense of "what do you have to wait for" > to remove the decorations? Can you send two requests in a row - a first > one to create a decorated frame and a second one to remove the > decorations - or do you have to wait for a response for the first > request before issuing the second one. I’ve worked it out: the toolbar is considered a ‘decoration’ by Cocoa, so it is automatically removed when I change a frame to undecorated. However, when I create a new undecorated frame the frame redrawing code waits for the toolbar to be drawn, which will never happen. I think this gives me two options: 1. Get Emacs to disable the toolbar when switching to undecorated frames. 2. Use a different method of removing the titlebar when the toolbar is enabled than when the toolbar is disabled. This option will only work in macOS 10.11 and above. Option 1 seems preferable to me, although we could add option 2 later. > Can you look also into three other things I added: > > - Provide a `move-frame-functions' hook. > > - Provide "frame restacking" which should work via orderWindow. I > suppose NS has no equivalent for z-groups. > > - Provide "child frames" which should work via parentWindow. > > I don't know whether NS child windows always behave like NS "drawers" or > may also occlude the parent frame like under X or Windows. Eventually > I'd like to have them both (like Wayland's subsurfaces if I understand > them correctly). Drawers look like a pain when you are in fullscreen > mode - IIUC there's no way to open them "into" a fullscreen frame. > X/Windows child windows are annoying when you are in a normal, fairly > small frame where they get clipped too easily. I don’t know enough about NS to be able to answer this. I’ll give it a go and see what happens. -- Alan Third