rxhanson / Rectangle

Move and resize windows on macOS with keyboard shortcuts and snap areas
https://rectangleapp.com
Other
25.9k stars 778 forks source link

macOS 13 Stage Manager option #829

Closed decodism closed 2 years ago

decodism commented 2 years ago

macOS 13 is only in early beta and there could be some changes but I think it would be nice to have an option to support Stage Manager. It should be enough to ignore the recent apps area on the left (about 375px on my screen), in a similar way to the todo mode on the right. It should be checked that this area is enabled (defaults read com.apple.WindowManager GloballyEnabled is true and defaults read com.apple.WindowManager AutoHide is false).

rxhanson commented 2 years ago

Thanks! I do typically wait a little while before rolling in any changes for macOS beta specific functionality/bugs, but if anyone else wants to make any changes with the proper #available macOS versioning then I'm good with rolling something in earlier and pushing out a new release.

Aaron-Rumpler commented 2 years ago

From what I've seen online, the Stage manager sidebar also auto-hides if it's covered by a window, so it should probably be an option as to whether or not to ignore that sidebar. Though in my personal opinion, not covering that sidebar should probably be the default.

decodism commented 2 years ago

I have looked a bit into this but there is an annoying issue: when restoring a scene, the windows moved programmatically with Rectangle are first restored to their last "manual" position before adopting their correct position.

Also, I'm not sure how wide the area should be reserved. On my screen:

Maybe the user should be given the choice. It could also be calculated dynamically by looking for the widest "window" of WindowManager.

rxhanson commented 2 years ago

Thanks for looking into it and reporting back.

Without having tested it out, it does sound like a user choice would be necessary. I'll plan on installing the beta earlier than I usually do so that I can take a look at it (maybe within the next 2-3 weeks).

hankhank10 commented 2 years ago

I have the beta installed on my secondary machine. It's very stable and in fact the only reason I wouldn't also install it on my primary machine would be that I rely on rectangle so much!

decodism commented 2 years ago

I sent a feedback to Apple regarding the issue I encountered. I hope they take them into account.