rxhanson / RectanglePro-Community

Bug reports and discussion for the Rectangle Pro app
https://rectangleapp.com/pro
98 stars 1 forks source link

[BUG] App + Chrome both become unresponsive when using Rectangle Pro to snap/resize windows #163

Open mwhardesty opened 1 year ago

mwhardesty commented 1 year ago

Summary

Both Rectangle Pro and Chrome become unresponsive for a period of time (about 15–30 seconds) after using Rectangle Pro to snap/resize windows.

Context

Troubleshooting steps

Environment

Notes

Although this seems specific only to Chrome, it's also possible that impression may be due to how frequently I use Chrome vs. other apps. I can't say for certain that it doesn't happen on other apps, but I haven't noticed it yet if so.

rxhanson commented 1 year ago

This is an issue Chrome side, and here are the details on it: https://github.com/rxhanson/Rectangle/issues/912

I built the same workarounds into Rectangle Pro, and here are the terminal commands you can use to enable them:

defaults write com.knollsoft.Hookshot enhancedUI -int 2

This will disable AXEnhancedUI when windows get resized, and it will not re-enable it after. (This was the change that was in the referenced auto-generated build).

Alternatively, you can try this:

defaults write com.knollsoft.Hookshot enhancedUI -int 3

This will disable AXEnhancedUI when frontmost application changes.

Restart the app after executing either of those. Setting it to 1 or 0 will undo those changes.

As mentioned, these are workarounds, and they don't "play nicely" with other apps that could rely on AXEnhancedUI being enabled. It's for this reason that I have only allowed them to be toggled via terminal command, and the underlying issue is still best resolved Chrome side.

(note that you want "Hookshot", not "Rectangle" in those terminal commands)

rxhanson commented 1 year ago

Update on this: Go to chrome://settings/help and it'll update your chrome to Chrome 108, where this is fixed Chrome side.

mimkorn commented 1 year ago

Indeed works also on Brave with Chromium 108! Thanks!