Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

MacOS Sonoma(14.2.1) Unable to obtain window id

Open abdlkrmdlgr opened this issue 1 year ago • 5 comments

When i wake up my device, rectangle not working properly. There are not working any shortcut and action. After restart my device, it's working again. I guess it's related with macOS version, before update to Sonoma it did not happened.

  • [ ] This is a new bug that hasn't been documented in a closed issue or in the Readme.

macOS version: 14.2.1 Rectangle version: Version 0.75 (81) Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

2024-01-22T10:03:16+03:00: Unable to obtain window id
2024-01-22T10:03:17+03:00: Unable to obtain window id
2024-01-22T10:03:17+03:00: Unable to obtain window id
2024-01-22T10:03:19+03:00: Unable to obtain the accessibility element with the specified attribute at mouse location

abdlkrmdlgr avatar Jan 22 '24 07:01 abdlkrmdlgr

Experiencing the same issue with macOS 14.2.1 and Rectangle v0.75 Build 81

kurzdev avatar Jan 25 '24 06:01 kurzdev

You could try unregistering Rectangle from accessibility privileges in macOS and re-adding it. If you do this, you'll want to follow these steps:

  1. Close Rectangle if it's running
  2. In System Settings -> Privacy & Security -> Accessibility, first disable Rectangle, then remove it with the minus button. (it's important to do both of those steps in that order)
  3. Restart your mac.
  4. Launch Rectangle and enable settings for it as prompted.

Or, if you're handy with the Terminal you can just execute this terminal command: tccutil reset All com.knollsoft.Rectangle

Sometimes the accessibility registration can just be flaky.

rxhanson avatar Jan 26 '24 05:01 rxhanson

Hey 👋🏻 I have the same problem, after wake up my device, rectangle not working but if I again switch the laptop to sleep mode and immediately wake it up it starts to work properly. This always happens after the device has been in sleep mode for about maybe 3h+ (for a long time). Of course, I checked the above solution, but unfortunately, after switching to sleep mode, the problem returns.

macOS Sonoma - version: 14.2.1 Rectangle - version 0.75 (81) Logs looks the same as above.

webskigosc avatar Feb 22 '24 10:02 webskigosc

@webskigosc thanks for reporting. Sometimes other apps that are using accessibility permissions can cause accessibility instability issues like this. You could try pruning your list if there's anything unnecessary in there.

Aside from that, you could also try this terminal command to change the way that Rectangle obtains the window under the cursor:

defaults write com.knollsoft.Rectangle systemWideMouseDown -int 1

rxhanson avatar Feb 22 '24 15:02 rxhanson

Thanks @rxhanson! Before writing the previous message, I looked at the access list and removed everything unnecessary. However, there are still such applications left as:

  • Keyboard Maestro & Keyboard Maestro Engine
  • Logi Options & Logi Options Daemon
  • Raycast
  • and of course Rectangle

Maybe the given information will help in some way. In any case, I will check the given command in the terminal and try to let you know in a few days if it helped.

webskigosc avatar Feb 27 '24 19:02 webskigosc