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: Tue, 17 Oct 2017 09:58:59 +0100 [thread overview]
Message-ID: <20171017085859.GA633@breton.holly.idiocy.org> (raw)
In-Reply-To: <CAHyO48z7TRNB8Yx=vEoq2a01QdxZN5ZOFHhhjHXQr7A5OiNPWw@mail.gmail.com>
On Mon, Oct 16, 2017 at 07:50:50PM -0700, Aaron Jensen wrote:
> On October 16, 2017 at 1:46:36 PM, Alan Third
> (alan@idiocy.org(mailto:alan@idiocy.org)) wrote:
>
> > If it doesn’t work can you change FRAME_UNDECORATED_FLAGS back to:
> >
> > #define FRAME_UNDECORATED_FLAGS NSWindowStyleMaskBorderless
> >
> > and see if you can resize the frame using lisp?
>
> I can resize the frame with set-frame-size when using only borderless
> and it does not break the mouse events. I can’t resize with the mouse
> in this case, however and adding the resizable style back puts me
> right back in the broken situation.
This is fine, we can live with this.
When you create an undecorated frame you’ll just have to also set the
frame parameter drag-internal-border to t. Resizing is a bit flickery,
but it should work as it’s being done through emacs lisp.
I didn’t realise that resizing through lisp worked when the resize
mask was off, I thought it was completely broken.
> According to George Nachman (author of iTerm2):
>
> > I'd say to file a radar but borderless windows are deprecated so I’d
> > only expect them to get worse. I guess Apple would prefer that you
> > use NSFullSizeContentViewWindowMask. Plus then you get a shadow and
> > rounded corners.
>
> Unfortunately, it behaves the same as borderless when there’s no title
> (bug included). As far as I can tell, the only way to get a resizable
> borderless window is to create it as such from the beginning :(
There are other things you can do, like making the title invisible and
turning off the buttons. I’ve not done much experimenting with it
since it doesn’t work on older macOS versions. It might be worth my
while putting in the effort, though.
I didn’t know that borderless windows were deprecated either. I don’t
remember seeing that mentioned in the documentation. Good to know
though.
--
Alan Third
next prev parent reply other threads:[~2017-10-17 8:58 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
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 [this message]
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=20171017085859.GA633@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).