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

MacOS Sonoma(14.2.1) Unable to obtain window id #1325

Open
1 task
abdlkrmdlgr opened this issue Jan 22, 2024 · 5 comments
Open
1 task

MacOS Sonoma(14.2.1) Unable to obtain window id #1325

abdlkrmdlgr opened this issue Jan 22, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@abdlkrmdlgr
Copy link

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 abdlkrmdlgr added the bug Something isn't working label Jan 22, 2024
@kurzdev
Copy link

kurzdev commented Jan 25, 2024

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

@rxhanson
Copy link
Owner

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.

@webskigosc
Copy link

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.

@rxhanson
Copy link
Owner

@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

@webskigosc
Copy link

webskigosc commented Feb 27, 2024

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.

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