Skip to content

(mac monterey 12.0.1) Rectangle unresponsive after afk induced logout #640

Closed as not planned

Description

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

Forgive me if I am just an idiot, but ever since the recent mac update I have noticed that after being afk for a long period of time mac will log out of my user account. Upon re-logging, box seems to be unresponsive to drag snapping. When attempting to force a snap via the menu bar icon, I hear the mac error clicking sound. The only fix seems to be a reboot.

macOS version: Monterey 12.0.1
Rectangle version: 0.49 (54)
Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

Activity

  1. added
    bug
    on Nov 16, 2021
  2. rxhanson commented on Nov 17, 2021

    @rxhanson
    Owner

    Does this happen every time?

  3. janwaechter commented on Nov 18, 2021

    @janwaechter

    I can confirm that the same behavior is also occurring on my machine. Every time my MacBook Pro wakes-up to the login screen after going to sleep/being afk for a while. To be clear, the Rectangle app itself is still running and available in the menu bar.

    According to the logs, there seems to be an issue with the window id (see below). I can also recreate the same issue with other window-managers as well (e.g. Magnet).

    macOS version: Monterey 12.0.1
    Rectangle version: 0.49 (54)
    Logs if applicable (In Rectangle menu, hold option, "View Logging..."): Unable to obtain window id

  4. rxhanson commented on Nov 19, 2021

    @rxhanson
    Owner

    Unfortunately, this appears to be a macOS issue. I’ll think about adding a restart on wake option to Rectangle, but that’s kind of an annoying workaround.

  5. braxtonowens commented on Nov 19, 2021

    @braxtonowens
    Author
  6. alexarraiza commented on Nov 22, 2021

    @alexarraiza

    I have the same problem, but I found that you can get it working without a reboot, you just have to lock the screen (command + control + Q), then push escape to turn off the screen, and then you can just wake the mac again and rectangle will work.

    macOS version: Monterey 12.0.1
    Rectangle version: 0.49 (54)
    Logs if applicable (In Rectangle menu, hold option, "View Logging..."): Unable to obtain window id

  7. mortenbm commented on Nov 25, 2021

    @mortenbm

    I have the same problem, but I found that you can get it working without a reboot, you just have to lock the screen (command + control + Q), then push escape to turn off the screen, and then you can just wake the mac again and rectangle will work.

    This worked for me! Thank you!

  8. elmanolito commented on Dec 8, 2021

    @elmanolito

    Unfortunately, this appears to be a macOS issue. I’ll think about adding a restart on wake option to Rectangle, but that’s kind of an annoying workaround.

    You don't need to do that, a reboot of rectangle does not fix it.
    What @alexarraiza recommends, works.

    Big thanks to you both!

  9. henrith commented on Sep 5, 2022

    @henrith

    I have the same problem, but I found that you can get it working without a reboot, you just have to lock the screen (command + control + Q), then push escape to turn off the screen, and then you can just wake the mac again and rectangle will work.

    macOS version: Monterey 12.0.1 Rectangle version: 0.49 (54) Logs if applicable (In Rectangle menu, hold option, "View Logging..."): Unable to obtain window id

    Doesn't work for me, Monterey 12.4 M1 Air 2020.
    Other suggestions?

  10. itsbrex commented on Sep 14, 2022

    @itsbrex

    Having this issue as well, but I don't think it's unique to Rectangle as I quit rectangle completely and enabled Window Snapping in Better Touch Tool and experienced the same issue.

  11. ericmburgess commented on Sep 21, 2022

    @ericmburgess

    Commenting because I started having this problem recently, and to confirm that restarting Rectangle does not fix the problem, and #640 (comment) does.

  12. kaitrek commented on Oct 14, 2022

    @kaitrek

    I cannot remember the exact cause but it's related to some macOS accessibility security that when the machine wakes up, macOS security fails to be removed when it should be. Locking the screen and then unlocking the screen will fix this issue. Happens for HyperSwitch app too.

  13. lyrixderaven commented on Oct 26, 2022

    @lyrixderaven

    Just to confirm, the problem remains on macOS Ventura as well, with the fix of locking and unlocking the screen as suggested in #640 (comment) still working.

  14. cpierson-pison commented on Nov 2, 2022

    @cpierson-pison

    The workaround proposed above by @alexarraiza does not work for me, but I am on a machine managed with Mosyle.

  15. Valappi commented on Jul 30, 2023

    @Valappi

    Hi all, am I having another issue or is this behavior still happening as of July 2023?

  16. siimsams commented on Aug 2, 2023

    @siimsams

    I have the same problem, but I found that you can get it working without a reboot, you just have to lock the screen (command + control + Q), then push escape to turn off the screen, and then you can just wake the mac again and rectangle will work.

    macOS version: Monterey 12.0.1 Rectangle version: 0.49 (54) Logs if applicable (In Rectangle menu, hold option, "View Logging..."): Unable to obtain window id

    This worked! Thanks!

  17. lbrobinho commented on Oct 15, 2023

    @lbrobinho

    Same issue here for new MAC OS Sonoma, but I never got the issue in previous OSs.

  18. rxhanson commented on Oct 18, 2023

    @rxhanson
    Owner

    @lbrobinho Thanks for letting me know. Do you know of anything else that might have changed with your system at the same time (like other apps that run in the background, etc)?

  19. atabakd commented on Jan 17, 2024

    @atabakd

    I have the same problem, but I found that you can get it working without a reboot, you just have to lock the screen (command + control + Q), then push escape to turn off the screen, and then you can just wake the mac again and rectangle will work.

    macOS version: Monterey 12.0.1 Rectangle version: 0.49 (54) Logs if applicable (In Rectangle menu, hold option, "View Logging..."): Unable to obtain window id

    After more than two years, this solution still works 👏👏

  20. rxhanson commented on Nov 20, 2026

    @rxhanson
    Owner

    I think this was always a macOS-side issue, so I'm going to close this one out.

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