To stop Windows 11 rearranging your windows when a monitor sleeps or is unplugged, open Settings, then System, then Display, and expand Multiple displays. Tick Remember window locations based on monitor connection, and untick Minimize windows when a monitor is disconnected.
With more than one screen, Windows treats a monitor going to sleep as a monitor being unplugged. It moves every window to the screen that's left, and without these settings it doesn't put them back.
Change the two settings
- Press Win + I to open Settings.
- Click System, then Display.
- Click Multiple displays to expand it.
- Tick Remember window locations based on monitor connection.
- Untick Minimize windows when a monitor is disconnected.
The first makes Windows put each window back where it was when the monitor returns. The second stops it minimising everything that was on the monitor that went away.
Can't see Multiple displays? The section only shows its options when more than one screen is connected. Plug the second monitor in, and look again.
Why it happens
DisplayPort monitors are the usual cause. When a DisplayPort monitor sleeps or is switched off, many of them tell the PC they have been disconnected altogether. Windows believes it, and moves your windows to another screen. HDMI monitors generally stay "connected" while asleep, so they don't cause it.
That gives you three more things to try if the settings above aren't enough.
Still happening?
- Look in the monitor's own menu. Use the buttons on the monitor, and look for a setting such as DisplayPort deep sleep, DP power saving, or auto input detection. Switching deep sleep off, or auto detection off, stops many monitors announcing that they've been unplugged. The name varies by make.
- Try an HDMI cable instead, if both the monitor and the PC have the port, and the screen doesn't need DisplayPort for its refresh rate.
- Stop the screen sleeping so soon. Open Settings, System, Power & battery (or Power), then Screen, sleep & hibernate timeouts, and lengthen the time before the screen turns off.
- Update the graphics driver from Nvidia, AMD, or Intel. Display wake problems are a common driver fix.
Put windows back quickly
When a window has ended up on the wrong screen, hold Win + Shift and press the left or right arrow key. The window jumps to the next monitor, and keeps its size.
For a window that's opened off-screen where you can't reach it, click its icon on the taskbar, then press Win + an arrow key to snap it back into view.
Questions
Does this work with a laptop and a docking station?
Yes. With the first setting ticked, Windows remembers where each window was on the external screens, and puts them back when you dock again.
Why do my windows all shrink to the top-left corner?
That usually happens with a single monitor. While it's asleep, Windows falls back to a small invisible display, and resizes your windows to fit. The monitor's deep sleep setting, or an HDMI cable, is the fix.
Does Windows 10 have these settings?
No. They were added in Windows 11. On Windows 10, the monitor setting and the cable are the options.
Will this stop my desktop icons moving too?
It often helps, because icons move for the same reason: Windows thinks the screen has changed. The monitor's own setting is the more dependable fix for icons.
More Windows 11 guides: Windows 11 settings to change, how to turn off all Windows system sounds, and how to remove the language switcher from the taskbar.
Stuck with your computer? Through my IT support business, TNNY IT, I can often help remotely the same day, or at home if you’re near Melton Mowbray.