My iMac is hooked up to an HDTV, and sometimes I move windows over to the HDTV.

But sometimes, my HDTV is not powered on, or it is set to the cable box, and I can't find the windows (apps) on my iMac, and there seems to be no way to see those windows (apps) without first changing the HDTV to view the iMac and moving the windows back to the iMac screen.

Or maybe another way is to unplug the HDMI connector.

But there should be a software way to do it... either by Settings or by a script, or maybe just by some function or command key combinations?

1 Answer 1


You could try going into System Preferences > Displays > Arrangement and check Mirror Displays. From here, unchecking it should bring all your windows back to your main screen.

  • unfortunately, if I mirror first and then un-mirror, OS X El Capitan will "intelligently" move the window back to the HDTV, and this is true even if I move the window to the bottom of the screen (when my HDTV is up top, while the iMac is at the bottom as the "arrangement" of multi-display). Apr 17, 2016 at 4:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .