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: Sat, 15 Apr 2017 17:29:22 +0100 Message-ID: <20170415162922.GA47622@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 1492273810 12947 195.159.176.226 (15 Apr 2017 16:30:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Apr 2017 16:30:10 +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 Sat Apr 15 18:30:06 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 1czQaL-0003FD-Rw for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Apr 2017 18:30:06 +0200 Original-Received: from localhost ([::1]:57388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czQaR-000555-Rm for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Apr 2017 12:30:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czQaL-00053H-V3 for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2017 12:30:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1czQaI-0008Qb-Mt for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2017 12:30:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50973) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1czQaI-0008QE-Ht for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2017 12:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1czQaI-0004ec-CN for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2017 12:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Apr 2017 16:30:02 +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.149227377317830 (code B ref 25408); Sat, 15 Apr 2017 16:30:02 +0000 Original-Received: (at 25408) by debbugs.gnu.org; 15 Apr 2017 16:29:33 +0000 Original-Received: from localhost ([127.0.0.1]:49172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1czQZo-0004dW-W5 for submit@debbugs.gnu.org; Sat, 15 Apr 2017 12:29:33 -0400 Original-Received: from mail-wr0-f179.google.com ([209.85.128.179]:34343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1czQZn-0004dH-8z for 25408@debbugs.gnu.org; Sat, 15 Apr 2017 12:29:31 -0400 Original-Received: by mail-wr0-f179.google.com with SMTP id z109so63988322wrb.1 for <25408@debbugs.gnu.org>; Sat, 15 Apr 2017 09:29:31 -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=O2/+D2tzzshOwG1kxFFI2tQ9CnCblLdex86DhYY37ws=; b=lUinJFoWbjpODBS/FFryuwCr0FrmH657+Xc9dQHZ9AMjDuNlqqKDJaqn4WelWz+CvF n4wPjUSaC8PQpUMhWnAMUl01t18uSnHUL6gi1VyB8zZyHJUpH4pSE8McLSb2GRY0/GeL 35GqRBfSB5QdIAEuo1h5Hv9PzhCtvKAjkLwDELZRguL9iPMaiHzTxG2dXCfqkP8JeY/C G6rVGHdSSTVNRJGKBWbtSt0xJKxbJgLBb0yiXvlfHUBVHDW83BVN+3g/6FwkoCvk8J8Y 039D93aBUSPxlCXYiU+ixYMYxG0S722CNo+zOqsSKaNvUzIf0Gw+UDUffkG2j4VgKwO0 41bw== 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=O2/+D2tzzshOwG1kxFFI2tQ9CnCblLdex86DhYY37ws=; b=BiYcAtpi3O6UIsGj6fe/pipPSWCj0lZKyBL228MspPssmYf3hLrlrlCXaaL5e4Nc78 oNbkFGJ+Kv1dAn0zenTUaMvXSimElTGdKHiV7YfMefHu3WARIVq+z32zAJonP1+O0Hsv V7nspv2ismR41ZAKUz2ZLPNzelqevip0cNaWFZ9Cbq7s5cYiU8iTZQTvfeIS6lcVRuKN NWNxr69py9+12PUFlKz0d1qmvdzKTulQ8kMr96ACW5670+P6gS47QQq3L9m86k45j+q6 6BMzYN8gIscKpGlBSDJrcJb8Rq41mgnA2dLgCGDZShTZqTipfiR5LUSu6nlNO5PKo6bW bW0A== X-Gm-Message-State: AN3rC/6S8shUlPY1coHzMUJfvtBw+lj1TQXonA8lpjeL4IHAiJH36kfw C7xK2QYBw1Uiyg== X-Received: by 10.223.176.13 with SMTP id f13mr12317825wra.124.1492273765429; Sat, 15 Apr 2017 09:29:25 -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 23sm6990556wrx.26.2017.04.15.09.29.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Apr 2017 09:29:24 -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:131615 Archived-At: I’ve done some further reading. On Thu, Apr 13, 2017 at 09:10:26AM +0200, martin rudalics wrote: > 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. If I understand your description right, there is a direct equivalent for z‐groups: levels. Here’s Apple’s documentation on them: > The levels you typically use are: NSNormalWindowLevel, which > specifies the default level; NSFloatingWindowLevel, which specifies > the level for floating palettes; and NSScreenSaverWindowLevel, which > specifies the level for a screen saver window. You might also use > NSStatusWindowLevel for a status window, or NSModalPanelWindowLevel > for a modal panel. This is in addition to the basic ‘layers’, which orderWindow deals with and which only affects windows in the same ‘level’. > - 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. It appears that a child window in NS is just a normal window which moves and closes with its parent. So I think that means it’s more like X’s child windows, except they don’t get clipped at the parent window’s edges. They can also end up below the parent window. I think this is probably what we want, for now at least. FYI: there are also drawers and something called sheets, which appear to be some sort of special modal drawer type thing used for error messages and such. I’ve pretty much got the undecorated frames sorted with only one major bug I’m aware of when the frame is nearly the full height of the screen. I think I may have to ask Anders about that as I can’t understand the code that keeps the frame on‐screen, and I think it may be the culprit. -- Alan Third