Sandman
I made a discovery… that any applications which are hidden do not loose window positions across a 'sleep'. With this in mind I have written an application to fix the sleep/wake window position issue. (It does not target any other issue, it is only for sleep).
You can download the application here. I call the application Sandman because it puts it's children to sleep.
You may download, unzip and run the application. It should put itself into the background and operate quietly. Sandman doesn't modify your system at all — it listens out for wake & sleep notifications from the computer and the screens, and simply hides and shows applications at appropriate times.
It may not work for everyone. To understand more, there are two main scenarios:
- Your computer sleeps before your monitors do. This is my setup, so this is the most tested scenario. The program works flawlessly for me.
- Your monitors sleep before your computer sleeps. This scenario is less tested.
I have briefly tested Sandman on a computer where the monitors go to sleep first. Sometimes one application remained hidden, or it's windows moved screen, but it was better than nothing. I hope this has been fixed, but can't test it at the moment. I won't hurt to try to see how you get on. You likely won't even know which scenario is yours.
Limitations:
- Sandman will not work if System Preferences is the active (front) application when sleeping. This is intentional, and it is to avoid the application triggering when you are rearranging your screens in the Displays preference.
- Sandman does not work when you log out or restart. This can be fixed but it's a lot of work. Hopefully Apple will fix the bug first.
Please post your experience in the discussion, but I cannot offer individual support.