From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Boris Buliga Newsgroups: gmane.emacs.bugs Subject: bug#31795: 26.1; Undecorated frame resize issues on macOS Date: Mon, 11 Jun 2018 21:38:57 +0300 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a4c342056e6210e9" X-Trace: blaine.gmane.org 1528790055 29731 195.159.176.226 (12 Jun 2018 07:54:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2018 07:54:15 +0000 (UTC) To: 31795@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 12 09:54:11 2018 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 1fSe81-0007a0-Tw for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 09:54:10 +0200 Original-Received: from localhost ([::1]:53619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSeA7-0001iq-70 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 03:56:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSe9t-0001f6-M3 for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 03:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSe9r-000704-Uk for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 03:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSe9r-0006zx-ON for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 03:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fSe9r-0000mG-Ed for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 03:56:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Boris Buliga Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jun 2018 07:56:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15287901172919 (code B ref -1); Tue, 12 Jun 2018 07:56:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jun 2018 07:55:17 +0000 Original-Received: from localhost ([127.0.0.1]:43999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSe96-0000l0-Sk for submit@debbugs.gnu.org; Tue, 12 Jun 2018 03:55:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSRir-0001kW-K9 for submit@debbugs.gnu.org; Mon, 11 Jun 2018 14:39:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSRik-0000uU-HK for submit@debbugs.gnu.org; Mon, 11 Jun 2018 14:39:16 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36012) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fSRik-0000uQ-Dd for submit@debbugs.gnu.org; Mon, 11 Jun 2018 14:39:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSRii-0001Ko-HR for bug-gnu-emacs@gnu.org; Mon, 11 Jun 2018 14:39:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSRig-0000tT-IW for bug-gnu-emacs@gnu.org; Mon, 11 Jun 2018 14:39:12 -0400 Original-Received: from mail-ot0-x22f.google.com ([2607:f8b0:4003:c0f::22f]:35584) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSRig-0000tB-7s for bug-gnu-emacs@gnu.org; Mon, 11 Jun 2018 14:39:10 -0400 Original-Received: by mail-ot0-x22f.google.com with SMTP id q17-v6so25001147otg.2 for ; Mon, 11 Jun 2018 11:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=d12frosted-io.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=/z5w1YHt+4Z3NWlsfEAS5ZL7vLM8Pn74s8+bFXYtaq8=; b=QpjBwqzuJPx+vtDk8xY4XVBtX3lKv4n2vCiKihlig7VYiwgl6ykvYz7HGJvjCiPtqK jBaTDpmaK3bb6cUo2ek7UUW1qElbk8a7uoWWUGSgbePzpWI5P0fhvT+k6ilRrx7aik4T AMaS417aPEP8xOuTL2HvFTaJ9PN4ctFO4tHdxa20ab+F1kl2ZLCUdZfDHTn+0vFxTYni eUspWtapaRL6/rFkwuiTw3o2Jkxct54hFC6gYnxEWn9TrDCYSdW/D/LF60lBRsMmM+69 0r43vi5Ixw1KZZtMsItuNxy9tgaLU/w74OtaL6ZK4nJ82C6B0SamsS4a1MlfsSZTooTz sGzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/z5w1YHt+4Z3NWlsfEAS5ZL7vLM8Pn74s8+bFXYtaq8=; b=bi/0yr5/6GDzbv3s1fBB/9eSi31JYo3nrUsqRkqceSAYx3ockxmL1NkG2senSeT3U7 jbz3ROXSO2pFjd1b1ylDiF+L31dUXr1DpQjGGygV7Dp5sloUj87PkLIWSMmmEBAYfDBN qfDXywDSWdWse6O5juvmwxdWi7hZE04FExjDhG9JRIdRmBSozbpWEfKKIA+jn3LVAzhs WUVpRHYetqUfIFUPA8VeyKCcF70JV+K/3POtLF45RK7zvShpUaGjtqlGhkWjG1/PBex1 tH0Hv8ZSe/XakONJ8Trm3K45JkyPSNbNM4zxjQJrvdL5HOy4V2+4lxtau0qKOVM1coz0 RrPQ== X-Gm-Message-State: APt69E1JH5w1UW0AQyZQ80NAbMaWV/2GaR6U6h/im2dpOXkDZN9wdlJK DBrjD3fdPgnVx+tCFqT+KTkj77DOeQFQ0X7jBEAJ6+CCsVU= X-Google-Smtp-Source: ADUXVKJ0YPqOywzEzvEfdDQMp6wYQBrP2wR+0rYkSgtb/v15MvCSZTXycK2K26N7BUuWL9Ze+lrKf6623bob+CMd+To= X-Received: by 2002:a9d:577d:: with SMTP id x58-v6mr250539oti.196.1528742348631; Mon, 11 Jun 2018 11:39:08 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 12 Jun 2018 03:55:16 -0400 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:147322 Archived-At: --000000000000a4c342056e6210e9 Content-Type: text/plain; charset="UTF-8" Message-ID: --text follows this line-- 1. Create ~/undecorated.el file with following content: (add-to-list 'default-frame-alist '(undecorated . t)) 2. Start Emacs: $ emacs -Q --load ~/undecorated.el or (if you don't want to create files) $ emacs -q --execute "(add-to-list 'default-frame-alist '(undecorated . t))" 3. Try one of the following actions 3.1. M-x toggle-frame-fullsreen Frames' window (in macOS sense) becomes fullscreen. But it doesn't cover all screen, instead it remains of the same default size with black area around. 3.2. Use Spectacle.app (or similar application for resizing windows in macOS) Frame is not resized. In both cases I expect frames to properly resize. Note that calling toggle-frame-maximized after the startup works like a charm. I've tried patching src/nsterm.m file by chaning definition of FRAME_DECORATED_FLAGS from #define FRAME_UNDECORATED_FLAGS NSWindowStyleMaskBorderless to #define FRAME_UNDECORATED_FLAGS NSWindowStyleMaskBorderless | NSWindowStyleMaskResizable and creating EmacsFSWindow instead of EmacsWindow (so canBecomeKeyWindow and canBecomeMainWindow both return YES). But it didn't make the trick. Let me know if you need any additional information. In GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F2511)) of 2018-05-31 built on builder10-10.porkrind.org Windowing system distributor 'Apple', version 10.3.1561 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. user-error: Beginning of history; no preceding item user-error: End of history; no default available Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils thingatpt elec-pair time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 204085 7246) (symbols 48 20096 1) (miscs 40 44 157) (strings 32 28985 1457) (string-bytes 1 764133) (vectors 16 35057) (vector-slots 8 713646 16946) (floats 8 49 67) (intervals 56 197 0) (buffers 992 11)) Best regards, Boris --000000000000a4c342056e6210e9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Message-ID: <m2a7s1mavt.f= sf@gmail.com>
--text follows this line--

1. Create ~/undecor= ated.el file with following content:


=C2=A0= =C2=A0(add-to-list 'default-frame-alist '(undecorated . t))<= /span>

2. Start Emacs:

=C2=A0= =C2=A0
<= span class=3D"gmail-Apple-converted-space">=C2=A0$ emacs -Q --load ~= /undecorated.el

=C2=A0=C2=A0=C2=A0or= (if you don't want to create files)

=C2=A0=C2=A0=C2=A0$ emacs -q --execute "(add-to-list 'default= -frame-alist '(undecorated . t))"

3. Try one of the following actions

3.1. M-x toggle-frame-fullsree= n

<= span class=3D"gmail-Apple-converted-space" style=3D"color:rgb(0,0,0);font-f= amily:monospace;font-size:12px;font-weight:normal;text-decoration:none">=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0Fram= es' window (in macOS sense) becomes fullscreen. But it doesn't
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0cover all screen, instead it remains of the= same default size with
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0black area ar= ound.

3.2. Use Sp= ectacle.app (or similar application for resizing windows in
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0macOS)

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Frame is not resized.

In both cases I expect frames to properly resi= ze.

Note that cal= ling toggle-frame-maximized after the startup works like a
charm.

= I've tried patching src/nsterm.m file by chaning definition ofFRAME_DECORATED_FLAGS from

=C2=A0=C2=A0#define FRAME_UNDECORATED_FLAGS NSWindowStyleMaskBorder= less

to

=C2=A0= =C2=A0#define FRAME_UNDECORATED_FLAGS = NSWindowStyleMaskBorderless |
=C2=A0= =C2=A0<= span class=3D"gmail-Apple-converted-space">=C2=A0NSWindowStyleMaskRe= sizable

and creat= ing EmacsFSWindow instead of EmacsWindow (so canBecomeKeyWindow
and canBecomeMainWindow both return YES).

But it didn't make the trick.

Let me know if you = need any additional information.

In GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS a= ppkit-1348.17 Version 10.10.5 (Build 14F2511))
of = 2018-05-31 built on builder10-= 10.porkrind.org
Windowing system distributor &= #39;Apple', version 10.3.1561
Recent messages:=
For information about GNU Emacs and the GNU syste= m, type C-h C-a.
user-error: Beginning of history;= no preceding item
user-error: End of history; no = default available

Configured using:
'configure --with-ns '-= -enable-locallisppath=3D/Library/Application
Suppo= rt/Emacs/${version}/site-lisp:/Library/Application
Support/Emacs/site-lisp' --with-modules'

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS

Important settings= :

=C2=A0=C2=A0value of $LANG: en_GB.UTF-8
=C2=A0=C2=A0locale-co= ding-system: utf-8-unix

Major mode: Lisp Interaction
=
Minor modes in effect:
=C2=A0=C2=A0tooltip-mode: t=
=C2=A0=C2=A0global-eldoc-mode: t
=C2=A0eldoc-mode: t
=C2=A0=C2=A0electric-indent-mode: t
=C2=A0= =C2=A0mouse-wheel-mode: = t
=C2=A0=C2=A0tool-bar-mode: t
= =C2=A0<= span class=3D"gmail-Apple-converted-space">=C2=A0menu-bar-mode: t

=C2=A0=C2=A0file-name-shadow-mode: t
=C2=A0=C2=A0global-font-lock= -mode: t
=C2=A0=C2=A0font-lock-mode: t
=C2=A0=C2=A0blink-cursor= -mode: t
=C2=A0=C2=A0auto-composition-mode: t
=C2=A0=C2=A0auto-= encryption-mode: t
=C2=A0=C2=A0auto-compression-mode: t
=C2=A0=C2=A0line-number-mode: t
=C2=A0= =C2=A0transient-mark-mode: t
Load-path shadows:=
None found.

Features:
(shadow sort mail-extr em= acsbug message rmc puny seq byte-opt gv
bytecomp b= yte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derive= d epg
epg-config gnus-util rmail rmail-loaddefs mm= -decode mm-bodies mm-encode
mail-parse rfc2231 mai= labbrev gmm-utils mailheader sendmail rfc2047
rfc2= 045 ietf-drums mm-util mail-prsvr mail-utils thingatpt elec-pair
time-date tooltip eldoc electric uniquify ediff-hook vc-hook= s
lisp-float-type mwheel term/ns-win ns-win ucs-no= rmalize mule-util
term/common-win tool-bar dnd fon= tset image regexp-opt fringe
tabulated-list replac= e newcomment text-mode elisp-mode lisp-mode
prog-m= ode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-= lang misc-lang
vietnamese tibetan thai tai-viet la= o korean japanese eucjp-ms cp51932
<= span style=3D"color:rgb(0,0,0);font-family:monospace;font-size:12px;font-we= ight:normal;text-decoration:none;float:none;display:inline">hebrew greek ro= manian slovak czech european ethiopic indian cyrillic

chinese composite charscript charprop case-table epa-hook jka-cmpr-hook=
help simple abbrev obarray minibuffer cl-preloade= d nadvice loaddefs
button faces cus-face macroexp = files text-properties overlay sha1 md5
base64 form= at env code-pages mule custom widget hashtable-print-readable
backquote kqueue cocoa ns multi-tty make-network-process emacs)=

Memory informati= on:

((conses 16 204085 7246)
(symbols 48 20096 1)
(miscs 40 44 157)<= br style=3D"color:rgb(0,0,0);font-family:monospace;font-size:12px;font-weig= ht:normal;text-decoration:none">(strings 32 28985 1457)
(string-= bytes 1 764133)
(vectors 16 35057)
(vector-slots 8 713646 16946)
(floats 8 = 49 67)
(intervals 56 197 0)
(buffers 992 11))


Best regards,
Boris

--000000000000a4c342056e6210e9--