Whenever I use my MacBook away from my desk and later plug it into an external display (as primary), I get into the state of having windows deposited in both the notebook monitor and the external one.
To move all windows to a single screen, my current solution is to "Turn on mirroring" in the display preferences and then turn it off again. This is rather tedious, though. Does anyone know of a better way?
I'm afraid the script posted by @erlando does absolutely nothing for me, running Mac OS X 10.5.4. (I.e., with windows on both screens, running the script moves not a single one of them, and it does not return any errors.) I guess I'll just have to stick with using the "mirror/unmirror" method mentioned above.
@Denton: I'm afraid those links provide scripts for getting windows which are orphaned from any screen back onto the display. I ‘just’ want to move all windows from a secondary display onto the primary display.
Just press F9 after pressing F8). When you press F8, you get an overview of every space, showing all open windows in all spaces. From here, you know you can move a window from one space to another by simply dragging it there.
Right-click on the thumbnail and select Move on the menu. Move the mouse cursor—now switched to a four-arrow "move" symbol – to the middle of your screen. Use the left arrow or right arrow key to move the missing window into the viewable area.
Cmd+F1
appears to be a Mirror Displays shortcut in Snow Leopard. Don't know about Lion, etc, though.
Just tap it twice and see what happens (-:
For the people who prefer to set up their function keys to act in the old-fashioned way (not as brightness/sound controls etc.), it will be Cmd+Fn+F1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With