bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28512: 26.0.60; undecorated frames on macOS 10.13 do not resize prop


From: Alan Third
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
User-agent: Mutt/1.9.0 (2017-09-02)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]