Guides · Updated November 5, 2026

Why do my windows move to one monitor after sleep or undocking?

Short answer: when a monitor disappears, even for a second, Windows moves its windows to a screen that's still there. When the monitor comes back, Windows often leaves them where they landed. Undocking, a monitor going to sleep, a KVM switch or a dock that wakes up slowly all count as "disappearing".

A laptop with two monitors; after undocking, every window is stacked on the laptop screen
Windows keeps windows visible by moving them to the screens that are left.

What's happening

Windows has to keep every window on a screen you can see. So the moment a display goes away, it rearranges: windows from the missing monitor move to the main screen, and maximized windows are maximized there instead. When the display returns, Windows 11 tries to put things back, Windows 10 doesn't, and both often get it wrong if the monitors return in a different order or with a different resolution.

Common triggers

What you can do in Windows

  1. Windows 11: open Settings > System > Display > Multiple displays and make sure Remember window locations based on monitor connection is ticked. It's on by default; see what it does and doesn't do.
  2. Windows 10: there's no such setting. See your options on Windows 10.
  3. Stop monitors from disappearing in the first place: turn off "deep sleep" in the monitor's own menu, and keep each cable in the same port every time (a setup that helps).
  4. Move a stray window back by hand: click it and press Win + Shift + ← or → to send it to the next monitor.

When that isn't enough

Windows' own setting only moves windows that are still open, and only when it recognizes the monitors. It doesn't reopen apps you closed, and it doesn't help after a restart. For that you need a tool that saves where everything was and puts it back when your monitors change.

More guides