I have a HDTV as my second monitor. I move windows to that monitor. When the computer and the TV sleeps and I bring both back, on the brief time both are initializing, OSX thinks the monitor is not there and moves all windows to where on that monitor the main monitor.
I didn't have this problem on the past when I had an old iMac and used RGB to connect the computer to the TV but now I have a new iMac and I am using the HDMI port. The "intelligence" of the HDMI output compared to the dumbness of the RGB is making things worst.
Any way to prevent stop this?