Why do my windows move when I turn off my monitor?
Many monitors disconnect fully when switched off or in power saving. macOS sees the display vanish and moves its windows to a screen that is still connected.
External monitor guide
Your Mac does not have to sleep for this to happen. When you switch an external monitor off, or it drops into power saving after a few minutes, many monitors cut the connection completely. macOS treats that as the display being unplugged and moves its windows onto whatever screen is left. When the monitor comes back, the windows usually stay where macOS put them.
Short version: turn off the monitor's deep sleep or auto power off, and let the Mac turn the display off instead of the power button. If windows still move, a SnapState workspace restores them when the monitor reconnects.
Your layout back after the monitor comes on. The 40 second demo shows a workspace saved from the SnapState menu bar and restored with one click: apps relaunch and windows go back to their saved displays, positions and sizes.
With sleep, the whole Mac goes quiet and every display reconnects on wake. Here only one monitor disappears while the Mac keeps running, so macOS rearranges windows right away. If your issue happens on wake instead, see why Mac windows move after sleep, windows move when switching monitor input and windows move after the lock screen.
SnapState is a Mac menu bar app that saves a named workspace: every window with its display, position and size, the apps to relaunch, the Space each app was on, full screen windows, and all open tabs in Safari, Chrome, Edge, Brave, Arc and Chromium. Restore it from the menu bar, with a Control-Command-1 to 6 shortcut, or automatically when a monitor connects or disconnects, on wake, or when a matching display layout appears.
Arm the monitor connect trigger and turn the display back on. SnapState sees the monitor return and puts each window back on it. It cannot stop the monitor from disconnecting, and it does not move the menu bar or Dock.
SnapState 2.7.5 costs $9.99 once, with a license for up to three Macs and a 14-day refund. It needs macOS 15.7 or later and runs natively on Apple Silicon and Intel. It needs Accessibility permission to move windows, and Automation permission if you want browser tabs reopened. Workspace data stays on your Mac. See SnapState.
SnapState is not a tiling or snapping tool. It does not save browser tab groups, history or form data, Firefox is not supported, and it does not change the display arrangement, main display, menu bar or Dock. It restores app windows.
Many monitors disconnect fully when switched off or in power saving. macOS sees the display vanish and moves its windows to a screen that is still connected.
Sometimes, but often not. macOS does not reliably put windows back on the display they came from, especially with more than one external monitor.
Look for deep sleep, eco mode, auto power off or auto input detection in the monitor menu. Turning those off can keep the connection alive.
Yes. A SnapState workspace can restore automatically when a monitor connects, so windows go back once the display is on again.
$9.99 once, for up to three Macs, with a 14-day refund. It needs macOS 15.7 or later.