Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know that with OS X Lion (10.7) and Mountain Lion (10.8) applications can be assigned to specific Spaces/Desktops. With my laptop I daily connect and disconnect from an external monitor. When I disconnect, all my app windows are automatically gathered to the laptop monitor, of course.

When I reconnect to the external monitor, I manually move my app windows back to the second screen. Is there some functionality that is built into OS X that would automatically restore those application windows back to where they were previously?

share|improve this question
    
So far the answers are directing me to third party applications. Perhaps OS X does not have a setting or option that would natively handle this. –  SunSparc Apr 18 '13 at 4:44
    
Update, this feature seems to be built in with Mavericks. Though that does not address the question for previous versions of the OS. –  SunSparc Jan 10 at 2:58

3 Answers 3

up vote 0 down vote accepted

This has been fixed in Mavericks. To control on which display an application's windows appear, move your cursor to the Dock icon for that application. Right-click (or Ctrl-click) on the icon, then select Options > Desktop on Display 1 (or 2). You also have the option to assign to all desktops or to none.

share|improve this answer
    
I would consider selecting this as an answer if you took more time to provide helpful details. As it is, I can only guess about the exact steps to recreate exactly what you are trying to describe. :) –  SunSparc Jul 22 at 14:53
    
I made some edits and hope it's more useful now. –  lukethompson Jul 23 at 17:38

I never tried it myself but I think this is what you are looking for:

http://cordlessdog.com/stay/

share|improve this answer
    
I had actually seen this will Googling my question before asking here. I will look into it further. Though I was hoping there was some functionality built into OS X that I could bend to my will. :) –  SunSparc Apr 12 '13 at 15:51
    
I use Stay, and it's great, but it doesn't always behave as expected with regard to Spaces. I've chatted with the developer, and evidently it's a limitation of OSX APIs and it very difficult to work around. –  wst Oct 16 '13 at 15:29
    
Stay looked promising but it can't handle X11 applications launched from remote machine =( –  rasjani Jun 4 at 7:31

The windowmanager Slate supports doing this kind of thing. You can create profiles (layout's) specific to a given situation, e.g. 1 monitor or 2 monitors, and specify how the windos should be organized (google chrome full screen on main screen, mail full screen on laptop screen, etc).

In addition to this feature, Slate has a truckload of other features. I would recommend skimming the documentation, but first read this blog post by Tristan Hume. A blog post I wrote about slate might also be interesting.

share|improve this answer
    
Perhaps similar to the Stay suggestion. I will take a look. Thanks. –  SunSparc Apr 12 '13 at 15:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.