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 (NS port) Date: Mon, 17 Apr 2017 17:21:49 +0100 Message-ID: <20170417162149.GB78089@breton.holly.idiocy.org> References: <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> <20170415162922.GA47622@breton.holly.idiocy.org> <58F276F4.4030805@gmx.at> <20170417145613.GA78089@breton.holly.idiocy.org> <58F4E2BD.3090704@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 1492446131 15889 195.159.176.226 (17 Apr 2017 16:22:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Apr 2017 16:22: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 , Anders Lindgren To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 17 18:22: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 1d09Pg-0003y4-QM for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Apr 2017 18:22:05 +0200 Original-Received: from localhost ([::1]:37711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d09Pm-0003kj-Pd for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Apr 2017 12:22:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d09Ph-0003k1-GV for bug-gnu-emacs@gnu.org; Mon, 17 Apr 2017 12:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d09Pe-00029P-CD for bug-gnu-emacs@gnu.org; Mon, 17 Apr 2017 12:22:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54508) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d09Pe-00029E-6V for bug-gnu-emacs@gnu.org; Mon, 17 Apr 2017 12:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d09Pd-0000o8-V2 for bug-gnu-emacs@gnu.org; Mon, 17 Apr 2017 12:22: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: Mon, 17 Apr 2017 16:22: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.14924461203096 (code B ref 25408); Mon, 17 Apr 2017 16:22:01 +0000 Original-Received: (at 25408) by debbugs.gnu.org; 17 Apr 2017 16:22:00 +0000 Original-Received: from localhost ([127.0.0.1]:52707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d09Pc-0000ns-36 for submit@debbugs.gnu.org; Mon, 17 Apr 2017 12:22:00 -0400 Original-Received: from mail-wm0-f41.google.com ([74.125.82.41]:36749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d09Pb-0000nf-7r for 25408@debbugs.gnu.org; Mon, 17 Apr 2017 12:21:59 -0400 Original-Received: by mail-wm0-f41.google.com with SMTP id o81so37042515wmb.1 for <25408@debbugs.gnu.org>; Mon, 17 Apr 2017 09:21:59 -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=5TuIREX/3BRIgO9EQQER1wmixWMLQmyKRUXVtx/7L+A=; b=sCmNdjNYQ/J10fuokou/H3yk7IPax2MX0vUUdfuw42DUpBsMxF8TI48NS+W0wYBc6l H+Kry/WoBcMODF3PqSusNLs/VjOHy8duumBkNfyvXutdoOLjSSkRHpn1+Ssw6rn7eSuj zSyOy39IlN3gBNDLGz8+mOia0EmMN9qrYweBMaeSNBf1SlBTPXhRn7DkEjrBKDPNymU3 CseRO+Lecyn9xzaLAHEJ8fmOvCe6vJ8DsyYGaBT1Kh0Sap2t+b3BKE3U2h58pi+rNAP9 HELyKwEks7rIZGxR2f9gCocJs2jyjH52ppWAY4pNzxZ8UGZU2hIr+Pvgo91PO5hYEVKV VThw== 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=5TuIREX/3BRIgO9EQQER1wmixWMLQmyKRUXVtx/7L+A=; b=kby2ClEHYvSOGERceRqeACv00zyfI2vsNx7ub19VjV69exTkCgngnBIby4zxVg2r5x F6WDyAQ39lf4zJqiNgvcyrxV7FTHM02fRWYRhDeNeFCdBmoacHASpETpp6suyOT1MnjH lqt3v1ASRPSHHXCXCMBNriKOfDOX1tJnpyPqMPYetsCIOeeK+LuKsrqUZTgK5hKRUjwB YCOBrBk/mwaYcGUsIHCVZ1hfeJk1k9RC2MO7cdYaLJOMu9GeWpxKx93d4xACuCf9IRP1 yK2LQJfqVADBTGAdMmeV6Ot5obA6V2q0ptIk1eVGRCFThsTENbzRpUdjhWE7SGvLSHAy VtJQ== X-Gm-Message-State: AN3rC/5/3ATOw0pj6hEMfGeAqct5O3+LSB0vGMyEH7wNuZUM4aHtXxnD D+CGBQEcyD+Rpw== X-Received: by 10.28.94.194 with SMTP id s185mr1969552wmb.103.1492446112409; Mon, 17 Apr 2017 09:21:52 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-2908-211d-64ad-5635.holly.idiocy.org. [2001:8b0:3f8:8129:2908:211d:64ad:5635]) by smtp.gmail.com with ESMTPSA id c5sm10028287wre.60.2017.04.17.09.21.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Apr 2017 09:21:51 -0700 (PDT) Content-Disposition: inline In-Reply-To: <58F4E2BD.3090704@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:131698 Archived-At: On Mon, Apr 17, 2017 at 05:43:57PM +0200, martin rudalics wrote: > Looks good to me. I suppose though this won't work with GNUStep so I > can't try it. Two remarks below. I’m not sure about the decoration stuff, but I think, from a quick glance at the GNUStep docs, the parent/child window stuff should work. I’ll try and build it under GNUStep at some point to check it works. I’ve got a GNU/Linux virtual machine around here somewhere... > > + * Set frame F's `undecorated' parameter. If non-nil, F's window-system > > + * window is drawn without decorations, title, minimize/maximize boxes > > + * and external borders. > > I suppose you want to mention the removal of the toolbar here. If so, > we'll have to mention that in the manual as well. Yes, good point. > When you re-add the decorations, does the inner frame move or are > the decorations drawn around an unmoved inner frame? There are only two situations where the inner frame will move. The first is if you have the toolbar enabled, when you re‐add the decorations the toolbar reappears and slides the rest of the frame down. (Similarly when you remove the toolbar the rest of the frame slides up.) The other is if the titlebar would be behind the menubar, then the system moves the whole frame down just enough to keep it completely visible. > > + * A child frame's `left' and `top' parameters specify positions > > + * relative to the top-left corner of its parent frame's native > > + * rectangle. > > Does the above hold for NS? Does a (set-frame-position child 0 0) > really put child in the upper left corner of its parent? Most of the time spent implementing the child/parent frames was getting that working right, so yes, it does. Now, one thing that may be wrong is that (0 0) is actually the very top, including the titlebar. I could probably fix that if it’s not right just by offsetting by the height of the titlebar. -- Alan Third