Windows moved after sleep, undocking or a game? Save and restore your window layout
You wake the PC, and every window is piled onto one monitor. Here is why it happens, and how to get your whole layout back with one key, or by itself.
In short
Windows moves the windows off a monitor that disappears, and a monitor going to sleep can look like one that was unplugged. On Windows 11, first turn on Remember window locations based on monitor connection. To fix it every time, save your layout as a desk in Stillward Display. It puts every window back on its monitor by itself, or when you press Ctrl + Alt + F9.
Why Windows moves your windows
When a monitor disappears, Windows moves its windows to the screens that are left, so nothing is lost off-screen. A monitor can “disappear” without you doing anything: a DisplayPort monitor goes to sleep, the PC wakes up before one of the screens does, a dock reconnects, or a game changes the resolution of the main display. When the monitor comes back, the windows often do not.
Doing it by hand
- On Windows 11, open Settings → System → Display → Multiple displays and tick Remember window locations based on monitor connection.
- In your monitor's own menu, turn off DisplayPort deep sleep. Some makers call it auto power off or quick start. The monitor then stays connected while it sleeps.
- Update your graphics driver.
This helps in many cases. Windows 10 has no such setting, and none of it covers a game that changed the resolution. For those, drag the windows back, or press Win + Shift + ← or → to move each one to the next monitor.
Save your layout as a desk, and get it back with one key
- Arrange your windows the way you like them, across all your monitors.
- In Stillward Display, open the Desks page and click Save. You can rename the desk, for example to “Work”.
- When the layout is lost, press Ctrl + Alt + F9. Every window goes back to its monitor and its place.
Often you will not even need the key. Watch for changes is on from the start: after sleep, a dock, or a game that changed the resolution, it puts the desk back by itself. A desk also remembers a separate layout for each set of monitors, so “Work” is right on the laptop alone and at the full desk.
Good to know
- Saving and restoring use the same measurements, so restoring again and again never moves a window, not even by a pixel.
- A saved desk puts back the windows that are open. A desk you set up in the editor can also start the programs that are closed.
- Windows does not let ordinary programs move the windows of apps that run as administrator. Stillward Display lists those for you.
Questions people ask
Why do my windows move when the monitor goes to sleep?
Over DisplayPort, many monitors tell Windows they are gone when they sleep. Windows then moves their windows to a screen that is still there, and does not always move them back when the monitor wakes up.
Does this work on Windows 10?
Yes. Stillward Display saves and restores layouts the same way on Windows 10 and Windows 11.
