Skip to content

Unable to obtain window id #1673

Closed
Closed

Description

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

macOS version: Sequoia 15.7.1
Rectangle version: 0.92 (98)
Logs if applicable (In Rectangle menu, hold option, "View Logging..."):
Each instance that I try to move window using keyboard shortcut or using the menu (for example i try 'Left Half'),
Rectangle Logging says:
2025-12-10T09:20:28+08:00: Unable to obtain window id
2025-12-10T09:20:28+08:00: Unable to obtain window id
2025-12-10T09:20:28+08:00: Unable to obtain window id
(this shows if I attampted 3 window moves)

This bug happens when my MacBook Pro (M2) was sleeping for a few hours.
If I reboot, Rectangle works normally (the bug goes away and Rectagle works fine).

I've tried closing and reopenning Rectangle: bug remains.

Please advise. Thank you,

Activity

  1. added
    bug
    on Dec 10, 2025
  2. rxhanson commented on Dec 10, 2025

    @rxhanson
    Owner

    Thanks for reporting. This log message implies that either macOS or the frontmost app is not vending the necessary window ID information to Rectangle via the Accessibility API. From this perspective, it's a bug in macOS that I can't reproduce and I don't have a clear path to fixing it off the top of my head. I'll think about this one a bit more and see if I can figure out a workaround.

  3. articulatesnail commented on Jan 27, 2026

    @articulatesnail

    macOS version: Tahoe 26.0.1
    Rectangle version: 0.93 (99)
    Macbook Pro M1 (2021)

    Rectangle Logging:

    2026-01-27T13:37:57+08:00: Unable to obtain window id
    2026-01-27T13:37:57+08:00: Unable to obtain window id (on commands)
    2026-01-27T13:38:02+08:00: Unable to obtain the accessibility element with the specified attribute at mouse location
    2026-01-27T13:38:10+08:00: Unable to obtain the accessibility element with the specified attribute at mouse location (on clicks within window)
    

    This issue happens occasionally, and resolves itself on reboot similar to datazen123's findings.

  4. rxhanson commented on Sep 2, 2026

    @rxhanson
    Owner

    Closing out old issues, this one might have been resolved by #1788, otherwise we're likely looking at an issue on the macOS side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions