unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Aaron Jensen <aaronjensen@gmail.com>
To: Alan Third <alan@idiocy.org>
Cc: 28512@debbugs.gnu.org
Subject: bug#28512: 26.0.60; undecorated frames on macOS 10.13 do not resize properly
Date: Sat, 23 Sep 2017 07:31:50 -0700	[thread overview]
Message-ID: <CAHyO48yPX5Xyi5846sotsmJMJEd3LERYyUdd3nb+w5UE8xDfSw@mail.gmail.com> (raw)
In-Reply-To: <CAHyO48yKJ+Ak2-nKigaLwv-hwVaYjUVFxe_8EdYM5KGNRnMiMw@mail.gmail.com>

On Tue, Sep 19, 2017 at 2:44 PM, Aaron Jensen <aaronjensen@gmail.com> wrote:
> Oops, yeah, the repro was wrong, I typed that line by hand instead of copy/pasting. Sorry about that. On 10.12, with the correct line, do you reproduce it still? Or was the bad line causing the issue for you?
>
> If you can reproduce on 10.12, it may be a recent regression because I hadn’t ever noticed it and I’ve been using it on 10.12 for a month or two now at least.

Some additional information:

A bug does reproduce on 10.12 for me as well, but not exactly the
same. On 10.12, it does look like the screenshot I originally
included, but does not have the mouse clicking issue. I'm not sure
why. It only does this if on the initial frame with that repro file.

The difference between the behavior on 10.12 and 10.13, however, is
that on 10.13, the area outside of the scrollbar/modeline does not
receive mouse events. If you click on that area of the window, the
click passes through to the window behind Emacs. On 10.12, it properly
receives events. This does seem to work fine on frames created anew
with undecorated as long as the below patch is applied.

Also, there looks like there was an issue with creating a new
undecorated frame, it was not resizable but should be:

---------------

diff --git a/src/nsterm.m b/src/nsterm.m
index a41d6be204..b433092d24 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -7207,9 +7207,9 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f

   win = [[EmacsWindow alloc]
             initWithContentRect: r
-                      styleMask: (FRAME_UNDECORATED (f)
+                      styleMask: ((FRAME_UNDECORATED (f)
                                   ? FRAME_UNDECORATED_FLAGS
-                                  : FRAME_DECORATED_FLAGS
+                                  : FRAME_DECORATED_FLAGS)
 #ifdef NS_IMPL_COCOA
                                   | NSWindowStyleMaskResizable
                                   | NSWindowStyleMaskMiniaturizable

----------------


Also, I'm getting occasional build failures on my 10.12 machine on
emacs-26. Any idea what would cause this:

ln -f emacs bootstrap-emacs

make -C ../nextstep all

rm -rf /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app

rm -rf /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app

../build-aux/install-sh -c -d
/private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app

make -C ../src emacs

../build-aux/install-sh -c -d
/private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app

mkdir: /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app:
File exists

( cd ./Cocoa/Emacs.base ; tar cfh - . ) | \

          ( cd /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app
; umask 022; tar xf - )

( cd ./Cocoa/Emacs.base ; tar cfh - . ) | \

          ( cd /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app
; umask 022; tar xf - )

./Contents/PkgInfo: Can't create 'Contents/PkgInfo'

./Contents/Resources/Credits.html: Can't create
'Contents/Resources/Credits.html'

./Contents/Resources/Emacs.icns: Can't create 'Contents/Resources/Emacs.icns'

./Contents/Resources/English.lproj/InfoPlist.strings: Can't create
'Contents/Resources/English.lproj/InfoPlist.strings'

tar: Error exit delayed from previous errors.

tar: Error exit delayed from previous errors.

make[2]: *** [/private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app/Contents/Info.plist]
Error 1

make[2]: *** Waiting for unfinished jobs....

make[2]: *** [/private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app]
Error 1

make[3]: Circular bootstrap-emacs <- temacs dependency dropped.

make -C ../admin/unidata all EMACS="../../src/bootstrap-emacs"

make -C ../admin/charsets all

make -C ../admin/unidata charscript.el

make -C ../admin/unidata all EMACS="../../src/bootstrap-emacs"

make[4]: Nothing to be done for `charscript.el'.

make -C ../admin/charsets cp51932.el

make[4]: Nothing to be done for `all'.

make[4]: Nothing to be done for `all'.

make -C ../admin/charsets eucjp-ms.el

make[4]: Nothing to be done for `cp51932.el'.

make[4]: Nothing to be done for `eucjp-ms.el'.

make[4]: Nothing to be done for `all'.

make[1]: *** [ns-app] Error 2

make: *** [src] Error 2





  reply	other threads:[~2017-09-23 14:31 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-19 15:10 bug#28512: 26.0.60; undecorated frames on macOS 10.13 do not resize properly Aaron Jensen
2017-09-19 15:35 ` Aaron Jensen
2017-09-19 21:34 ` Alan Third
2017-09-19 21:44   ` Aaron Jensen
2017-09-23 14:31     ` Aaron Jensen [this message]
2017-09-23 19:11       ` Alan Third
2017-09-23 21:35         ` Aaron Jensen
2017-09-24 11:27           ` Alan Third
2017-09-24 15:43             ` Aaron Jensen
2017-09-24 21:05               ` Alan Third
2017-09-25  0:39                 ` Aaron Jensen
2017-09-25 10:13                   ` Alan Third
2017-09-25 15:18                     ` Aaron Jensen
2017-09-25 16:33                       ` Alan Third
2017-09-25 17:02                         ` Aaron Jensen
2017-10-14 21:47                           ` Aaron Jensen
2017-10-16 10:01                             ` Alan Third
2017-10-16 12:49                               ` Aaron Jensen
2017-10-16 20:46                                 ` Alan Third
2017-10-17  2:50                                   ` Aaron Jensen
2017-10-17  8:58                                     ` Alan Third
2017-10-18 16:08                                       ` Aaron Jensen
2017-10-18 16:12                                         ` Aaron Jensen
2017-10-18 19:32                                           ` Alan Third
2017-10-18 19:50                                         ` Alan Third
2017-10-19  1:00                                           ` Aaron Jensen
2021-07-25 11:17                                           ` Alan Third
2021-07-25 17:06                                             ` Aaron Jensen
2021-12-22 20:52                                               ` Alan Third
2021-12-23 15:20                                                 ` Aaron Jensen
2021-12-23 16:09                                                   ` Alan Third
2021-12-23 18:19                                                     ` Aaron Jensen
2021-12-28 11:43                                                       ` Alan Third
2021-12-28 16:18                                                         ` Aaron Jensen
2022-01-04 10:58                                                           ` Alan Third
2017-10-17  8:59                                   ` martin rudalics
2017-10-17 16:06                                     ` Aaron Jensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHyO48yPX5Xyi5846sotsmJMJEd3LERYyUdd3nb+w5UE8xDfSw@mail.gmail.com \
    --to=aaronjensen@gmail.com \
    --cc=28512@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).