Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore window size when window is moved #92

Closed
FezVrasta opened this issue Feb 11, 2020 · 10 comments
Closed

Restore window size when window is moved #92

FezVrasta opened this issue Feb 11, 2020 · 10 comments
Labels
bug Something isn't working

Comments

@FezVrasta
Copy link

Hi, I understand you don't accept feature requests, but I'll leave it here in case someone feels like to implement it.

Something I miss from Magnet is the following behavior:

  1. Use any shortcut to resize/position a window;
  2. Drag the window somewhere;
  3. The window size is restored to the size it used to have before it was resized by the software;
@rxhanson
Copy link
Owner

This is actually a bug. This functionality is/was in Rectangle but there's a regression that causes it to not always happen anymore.

@rxhanson rxhanson added the bug Something isn't working label Feb 11, 2020
@rxhanson
Copy link
Owner

When you get a chance, can you try out v0.21 with the fix?https://github.com/rxhanson/Rectangle/releases/tag/v0.21

If everything looks good, I'll post it to the update channel.

@FezVrasta
Copy link
Author

That was quick!

It works, but there's some delay (~1 second)

@rxhanson
Copy link
Owner

rxhanson commented Feb 11, 2020

Thanks for trying it out quick. I noticed that delay, too. It seems like the delay is not as noticeable after I've used it for a little bit of time. It could be some macOS weirdness, but I'll see if there's anything I can do about it.

The original issue was actually caused by something changing in macOS - nothing changed Rectangle side that could (should?) have broken this. I just tried in Magnet and it appeared to have the same bug for me.

[edit] The change in macOS that caused the issue was that the values for the dimensions and origin of a window were not being updated as quickly as they used to when the window was dragged. What that means is that the delay is potentially also due to the window dimensions not being updated, and unfortunately that's something macOS side. I'll still dig in a little further and see if there's anything that can be done. The delay happens only once in a while for me, which could point to the event stream just being a little laggy in macOS.

@rxhanson
Copy link
Owner

rxhanson commented Feb 11, 2020

Alright, round 2:
https://github.com/rxhanson/Rectangle/releases/tag/v0.22

Let me know how this one goes.

[edit] My testing looks good, so I'm going to go ahead and roll out v0.22 to the update channel.

@FezVrasta
Copy link
Author

0.22 seems much better, thank you a lot!

@hmarr
Copy link

hmarr commented Apr 16, 2020

Is there a way of disabling this behaviour, by any chance?

@rxhanson
Copy link
Owner

@hmarr There's not, but I'd be willing to accept a PR that makes this configurable via Terminal command.

@jakeswork
Copy link

Was this behaviour put into some sort of toggle? It's not working for me on v0.46

@rxhanson
Copy link
Owner

@jakeswork The checkbox is "Restore window size when unsnapped" in the settings tab

rxhanson added a commit that referenced this issue Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants