unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Aaron Jensen <aaronjensen@gmail.com>
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 20:11:44 +0100	[thread overview]
Message-ID: <20170923191144.GA6576@breton.holly.idiocy.org> (raw)
In-Reply-To: <CAHyO48yPX5Xyi5846sotsmJMJEd3LERYyUdd3nb+w5UE8xDfSw@mail.gmail.com>

On Sat, Sep 23, 2017 at 07:31:50AM -0700, Aaron Jensen wrote:
> On Tue, Sep 19, 2017 at 2:44 PM, Aaron Jensen <aaronjensen@gmail.com> wrote:
> > 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.

I’ve fixed it, and I doubt it’s a regression because I can’t see how
it could have ever worked.

When creating a frame, sometimes the toolbar takes a while to draw and
we have to wait for it before we can do things like resize windows (or
else we get an annoying series of window resizes).

(It’s just occurred to me, while typing this out, that the whole way
we’re handling this is just broken. It should probably be completely
redone.)

Undecorated frames, like fullscreen windows, don’t have toolbars, so
the code always sees it as zero size and therefore never stops waiting
for it to draw.

This means it will never resize.

Of course, the actual NSWindow *does* resize, it’s just Emacs that
doesn’t. This is clearly broken.

I’ve added a check for whether the window is undecorated, the same as
we check if it’s fullscreen.

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

Although this maybe isn’t actually a bug (and undecorated windows
being resizable is), I’ve made it consistent by doing what you
suggest.

> Also, I'm getting occasional build failures on my 10.12 machine on
> emacs-26. Any idea what would cause this:
> 
<snip>
> ./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'

Is it a permissions issue on your Emacs.app directory?
-- 
Alan Third





  reply	other threads:[~2017-09-23 19:11 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
2017-09-23 19:11       ` Alan Third [this message]
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=20170923191144.GA6576@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=28512@debbugs.gnu.org \
    --cc=aaronjensen@gmail.com \
    /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).