rxhanson / Rectangle

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

Stage manager behaviour totally broken #1063

Open murdock-grewar opened 1 year ago

murdock-grewar commented 1 year ago

macOS version: Ventura 13.2 Rectangle version: 0.65

Hi, I love this app in principle, but unfortunately the Rectangle app just isn't resizing things to the correct window width with Stage Manager on. I've assigned hotkeys for snapping to the left 1/2 and right 1/2. But nothing ever seems to resize correctly. I know this is vague, but the whole functionality just seems broken in general.

The behaviour is inconsistent, but it fails more often that it works. Rectangle will seemingly randomly decide whether it should leave that space for the Stage Manager recent apps menu on the left hand side of the screen. This is particularly annoying because it means that the left and right halves often overlap, because one of them accounts for Stage Manager and the other does not.

Similar issues plague the other resizing options too, like centreing a window or almost-maximising it, even just maximising it.

The way I would describe the behaviour is that there seems to be a small chance (say, 20%) that Rectangle correctly leaves room for Stage Manager on the left-hand side. The rest of the time, it fails to leave room.

I love this app otherwise, but this bug makes it really frustrating to use. I can't see any pattern in the behaviour; it seems like a random chance.

rxhanson commented 1 year ago

Thanks for reporting. In order to figure out what's going on, it might take some additional logging beyond what is currently in the app. Would you be up for testing out another build with additional logging?

murdock-grewar commented 1 year ago

Thanks for reporting. In order to figure out what's going on, it might take some additional logging beyond what is currently in the app. Would you be up for testing out another build with additional logging?

Yes certainly, that is easy for me. If you can tell me how to launch Rectangle via the terminal so that it prints to stdout and stderr, that would be preferable. I can pipe those to log files and send them to you.

murdock-grewar commented 1 year ago

Additional note: I have disconnected from the external monitor, and currently Rectangle seems to be working well. The issue might only occur when plugged into another monitor. However, the issue then affects both monitors.

rxhanson commented 1 year ago

Thanks! This actually points to a macOS issue, then. Rectangle doesn't handle displays uniquely in a way that could cause this. There's also this issue that was recently added: https://github.com/rxhanson/Rectangle/issues/1062. Without digging deep into it, my first guess is that Ventura has a bug where external displays may affect the Accessibility API that Rectangle relies on for obtaining and setting window positions and sizes.

lukasmaxim commented 1 year ago

First of all, thanks a lot for this window manager. Was on the lookout for one that supports stage manager for a while and Rectangle is just what I needed!

Just adding here that the issue still exists on

macOS version: Ventura 13.4 Rectangle version: 0.69

Behavior is consistent with what murdock-grewar describes, shortcuts for maximizing, 1/2 splitting work fine with stage manager on on a single display, but are inconsistent (more often than not won't work) when having a second monitor plugged in. Would be really great if there was a way to investigate this. I'm happy to send additional info if that helps!

jpatrolla commented 10 months ago

edit: also, make sure if you've just installed pro that your original rectangle instance isn't running lol

--

Hi gang. Try changing the following setting to 'Do Nothing': System Settings > Desktop & Dock > Double-click a window's title bar to Do Nothing

image

Seems to be fixed so far for me. Hope that helps