From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#25408: Remove Decorations Around Emacs Frame (NS port) Date: Wed, 19 Apr 2017 13:24:00 +0200 Message-ID: References: <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> <20170415162922.GA47622@breton.holly.idiocy.org> <58F276F4.4030805@gmx.at> <20170417145613.GA78089@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c0b9898d2d98e054d834290 X-Trace: blaine.gmane.org 1492601119 28227 195.159.176.226 (19 Apr 2017 11:25:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2017 11:25:19 +0000 (UTC) Cc: 25408@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel , Arthur Miller To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 19 13:25:13 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 1d0njV-0007DY-6B for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Apr 2017 13:25:13 +0200 Original-Received: from localhost ([::1]:47208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0njb-0003pY-0I for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Apr 2017 07:25:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0njO-0003dx-IR for bug-gnu-emacs@gnu.org; Wed, 19 Apr 2017 07:25:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0njL-0007Gt-A7 for bug-gnu-emacs@gnu.org; Wed, 19 Apr 2017 07:25:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57404) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0njL-0007Gn-6R for bug-gnu-emacs@gnu.org; Wed, 19 Apr 2017 07:25:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d0njK-0001TW-UZ for bug-gnu-emacs@gnu.org; Wed, 19 Apr 2017 07:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Apr 2017 11:25: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.14926010475601 (code B ref 25408); Wed, 19 Apr 2017 11:25:01 +0000 Original-Received: (at 25408) by debbugs.gnu.org; 19 Apr 2017 11:24:07 +0000 Original-Received: from localhost ([127.0.0.1]:55603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0niR-0001SH-K3 for submit@debbugs.gnu.org; Wed, 19 Apr 2017 07:24:07 -0400 Original-Received: from mail-ua0-f176.google.com ([209.85.217.176]:36318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0niQ-0001Rk-7W for 25408@debbugs.gnu.org; Wed, 19 Apr 2017 07:24:06 -0400 Original-Received: by mail-ua0-f176.google.com with SMTP id a1so12698606uaf.3 for <25408@debbugs.gnu.org>; Wed, 19 Apr 2017 04:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MGjVPdptDix/8SCxYL8L6dSo0Op4lOnn0aDJmto9YyY=; b=UeMmHG9XVERj7oSFN30X1WDuqtj8iRXYLJd2LHsZlENColch0NAvQvaxcVhyx5whZN 1s0yPKoabBS5hZpV2Oi6h3+kCpWaBwwyCI6JFNBqKIKLQXR+46iZQF97zUDtumgwEyVt 6wk+DlXANiE1MHBsrI5ChIMeu02YBzcBLUmAltdIxquGVhOfV0VQuExJGvDCnViz5d5V d7Vbr0i/6NK9PBbm/xw1mFbVRXUB7Mv9v77AA0nmBOIuWCRUzbfCkSKGb67WmtQrqwHn M5J4QBiKIE0egXhXs4Z7Tvv0rL4fvQXQKG337PeO++Pw/MCCdkXTbgCXnnETtWOLq/Kj cVvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MGjVPdptDix/8SCxYL8L6dSo0Op4lOnn0aDJmto9YyY=; b=iXOksay1ErPW8ebCmH2Z5rIgUf7DFizmoVmFhysr+U6O2/0kdm6rVsTeFfZs2atM/Q bgOldpM+5zoR2tRuheKB2VXsZ7bfsOgxy0NZ7eI1vrWgwtw/OnJqw016DcmeQTONkHjA hnIwjReAgD/loq2/hiYO8aSgfiTyJ3ncpu2YSP9D66NnTJ2eBP/4ZXtYgHtaAnYoUPWp b4ZRaiVcr2gU0CIHtTsCrgAE9NtQ/u85+CjGMqjb7KMhxdvStnYeE71OxoT+xBVW+PG/ uLtfAFwqaqR80MvelL1Y86t9Z7MCZUCcRijId5aGPyO/Nb9QZXooX9RceqGsy4eany7s dC5g== X-Gm-Message-State: AN3rC/6K6ZEDfXzf8+fB+8sObNyurw8+W1aoJ9K1G0Kq6de6OGT4nTkf /PKOj0vAg8SwDUlaII44c3VohRXBtg== X-Received: by 10.176.69.65 with SMTP id r59mr930238uar.93.1492601040720; Wed, 19 Apr 2017 04:24:00 -0700 (PDT) Original-Received: by 10.31.74.5 with HTTP; Wed, 19 Apr 2017 04:24:00 -0700 (PDT) In-Reply-To: <20170417145613.GA78089@breton.holly.idiocy.org> 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:131754 Archived-At: --94eb2c0b9898d2d98e054d834290 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi! > Anders, I hope it=E2=80=99s OK CCing you in. I think you might appreciate= the > following (after applying the patch): > I really appreciate that you are keeping me in the loop! emacs -Q > > (set-frame-parameter nil 'undecorated t) > (setq ns-auto-hide-menu-bar t) > (toggle-frame-maximized) > This looks very promising! It's a cleaner solution than the one I use today -- placing the title bar above the top of the screen. The only issue I've came across was when the bottom edge of a frame was close to the bottom of the display (or when maximized). When `undocorated' goes from t to nil, the window shrinks. When positioned in the middle of the screen, it looks like the frame, for a fraction of a second, increases its size before returning to it's original shape. My guess is that, when at the bottom of the screen, the frame gets truncated when the frame is temporarily increased, and when it tries to return to it's original size, it shrinks. I made an attempt at adapting/modernizing my "multicolumn" ( https://github.com/Lindydancer/multicolumn) package (which, among else, can resize and reposition a frame). Currently, I have hardcoded the title size for various systems -- on macOS I use "24". However, `frame-geometry' says that the title height is 22 pixels. I'm not sure how to account for the missing 2 pixels, any thoughts? Martin, I also notices that `menu-bar-external' says `nil', but I guess is should say non-nil, right? -- Anders --94eb2c0b9898d2d98e054d834290 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!
=C2=A0
emacs -= Q

(set-frame-parameter nil 'undecorated t)
(setq ns-auto-hide-menu-bar t)
(toggle-frame-maximized)

This looks ver= y promising! It's a cleaner solution than the one I use today -- placin= g the title bar above the top of the screen.

The o= nly issue I've came across was when the bottom edge of a frame was clos= e to the bottom of the display (or when maximized). When `undocorated' = goes from t to nil, the window shrinks. When positioned in the middle of th= e screen, it looks like the frame, for a fraction of a second, increases it= s size before returning to it's original shape. My guess is that, when = at the bottom of the screen, the frame gets truncated when the frame is tem= porarily increased, and when it tries to return to it's original size, = it shrinks.

I made an attempt at adapting/moderniz= ing my "multicolumn" (https://github.com/Lindydancer/multicolumn) package (which,= among else, can resize and reposition a frame). Currently, I have hardcode= d the title size for various systems -- on macOS I use "24". Howe= ver, `frame-geometry' says that the title height is 22 pixels. I'm = not sure how to account for the missing 2 pixels, any thoughts?
<= br>
Martin, I also notices that `menu-bar-external' says `nil= ', but I guess is should say non-nil, right?

= =C2=A0 =C2=A0 -- Anders

--94eb2c0b9898d2d98e054d834290--