You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
(mac monterey 12.0.1) Rectangle unresponsive after afk induced logout #640
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..."):
Reacted by Evgenii Morozov, marcusglowe, R S, Tony Clark, Akshay Bansod, Rowan Baker-French, Luis Couto, Joe Martinez and Francesco Ciannavei
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
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.
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
Reacted by Brandon Butler, Braxton Owens, Jan Wächter, Mehdi OUAZZA, Jim Ladd, Wilhelm Törnroos, Toine Rademacher, jbarazoto, Anandamaya Arno, Angelo Tata and 94 more
Reacted by mortenbm, Jan Wächter, Mehdi OUAZZA, Floris Fokkinga, Derek Ogletree, Wilhelm Törnroos, Toine Rademacher, Evgenii Morozov, Anandamaya Arno, Alex Beraut and 44 more
Reacted by Daniel Lazar, John Carmack, Moray Baruh, AbdelRahman Nasr, dwm-mcollins, atabak-cve, Naimun Siraj, eshirima, adrianlocurciohotovo, William Fang and 7 more
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!
Reacted by Lincoln Souza, chribag and BogdanTheGeek
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.
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?
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.
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.
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.
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
@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)?
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 👏👏
Reacted by Joe Martinez, Ismael Abu-jadur Garcia, Landon Clipp and Cameron Walters (cee-dub)
Reacted by Spence, Steve Vezeau, Santi Agüero and Ismael Abu-jadur Garcia
Activity
rxhanson commentedon Nov 17, 2021
Does this happen every time?
janwaechter commentedon Nov 18, 2021
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 idrxhanson commentedon Nov 19, 2021
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.
braxtonowens commentedon Nov 19, 2021
alexarraiza commentedon Nov 22, 2021
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
mortenbm commentedon Nov 25, 2021
This worked for me! Thank you!
elmanolito commentedon Dec 8, 2021
You don't need to do that, a reboot of rectangle does not fix it.
What @alexarraiza recommends, works.
Big thanks to you both!
henrith commentedon Sep 5, 2022
Doesn't work for me, Monterey 12.4 M1 Air 2020.
Other suggestions?
itsbrex commentedon Sep 14, 2022
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.
ericmburgess commentedon Sep 21, 2022
Commenting because I started having this problem recently, and to confirm that restarting Rectangle does not fix the problem, and #640 (comment) does.
kaitrek commentedon Oct 14, 2022
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.
lyrixderaven commentedon Oct 26, 2022
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.
cpierson-pison commentedon Nov 2, 2022
The workaround proposed above by @alexarraiza does not work for me, but I am on a machine managed with Mosyle.
Valappi commentedon Jul 30, 2023
Hi all, am I having another issue or is this behavior still happening as of July 2023?
siimsams commentedon Aug 2, 2023
This worked! Thanks!
lbrobinho commentedon Oct 15, 2023
Same issue here for new MAC OS Sonoma, but I never got the issue in previous OSs.
rxhanson commentedon Oct 18, 2023
@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)?
atabakd commentedon Jan 17, 2024
After more than two years, this solution still works 👏👏
Execute window actions when the window id is unavailable (#1788)
rxhanson commentedon Nov 20, 2026
I think this was always a macOS-side issue, so I'm going to close this one out.