alacritty / alacritty

A cross-platform, OpenGL terminal emulator.
https://alacritty.org
Apache License 2.0
53.72k stars 2.94k forks source link

Set cursor when in transparent/buttonless title area on macOS #7974

Open nixpulvis opened 2 weeks ago

nixpulvis commented 2 weeks ago

When window.decorations = "Buttonless" or "Transparent" the cursor should show a pointer when dragging it will not select text but instead move the window.

Current behavior:

https://github.com/alacritty/alacritty/assets/715947/d1a65440-22d9-41d9-b71a-029aa9c3cf70

chrisduerr commented 2 weeks ago

I'm not sure it should? Shouldn't the safe zone to move the window just not exist at all?

nixpulvis commented 2 weeks ago

I get the expected behavior of the four macOS options for decorations really confused TBH. If what you say is true however, then the only difference between "Buttonless" and "None" is the rounding of the window. I expect the only real reason someone uses "Buttonless" over "None" is so they can move the window. Of course, you can always drag the window even with "None" by putting the cursor on the edge (where it allows resize) and dragging that somehow. It's confusing, but it sorta works. Still having a hidden drag zone is somewhat intuitive for people who "just know" that the top of a window allows dragging, so I would expect the cursor image to reflect that for this mode.

Buttonless should just be "Transparent" without the buttons IMO.

Which now that I mention is is also a small issue.

chrisduerr commented 2 weeks ago

If what you say is true however, then the only difference between "Buttonless" and "None" is the rounding of the window.

I don't know what the difference is, I don't use macOS.