How to make application remember desktops for multiple windows on quitting and restarting

In Mac OS X Lion when you quit an application with multiple windows on multiple desktops, it doesn't seem to remember which desktops they were assigned to on restarting?

Is there a setting to make this happen? or a hack, tweak or whatever?


Solution 1:

I'm not sure if this is what your want, but there's a great application that I use on the Mac, called Stay. It keeps track of where you put your applications when working with which monitors and ensures that the applications are put on the same displays when you restart, wake up from sleep or just plug in another monitor.