rxhanson / Rectangle

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

"Center" doesn't respect Stage Manager #1253

Open ajs256 opened 10 months ago

ajs256 commented 10 months ago

When I use Hyper-C to center a window, it centers it on my entire screen, which doesn't respect the Stage Manager preview like other shortcuts do.

macOS version: Ventura 13.5.1 Rectangle version: 0.70 Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

2023-09-06T10:48:05-07:00: AX sizing proposed: (1430.0, 965.0), result: (1430.0, 965.0)
2023-09-06T10:48:05-07:00: AX position proposed: (125.0, 55.0), result: (125.0, 55.0)
2023-09-06T10:48:05-07:00: AX sizing proposed: (1430.0, 965.0), result: (1430.0, 965.0)
2023-09-06T10:48:05-07:00: center | display: (0.0, 0.0, 1680.0, 1025.0), calculatedRect: (125.0, 55.0, 1430.0, 965.0), resultRect: (125.0, 55.0, 1430.0, 965.0), srcScreen: Built-in Retina Display, destScreen: Built-in Retina Display, resultScreen: Built-in Retina Display
2023-09-06T10:48:08-07:00: Unable to obtain the accessibility element with the specified attribute at mouse location
eshpakovsky commented 10 months ago

Hi! You can try this defaults write com.knollsoft.Rectangle alwaysAccountForStage -bool true

eshpakovsky commented 10 months ago

@rxhanson Maybe it is worth mentioning this option in TerminalCommands.md or even adding it to the UI?

rxhanson commented 10 months ago

Thanks @eshpakovsky, indeed I need to add this to the TerminalCommands.md. I don't have plans to add this to the UI unless there is a ton of demand.