Restore window position when monitor topology changes #12622

Open
opened 2026-01-31 03:20:28 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Feb 16, 2021).

Do not only remember the last monitor that was used, but also remember the last position used on other monitors.

When I have the Terminal open on my big monitor and disconnect my notebook, it will appear on my notebook's screen, of course. Now, it would be great if Terminal remembered the last position used when it was open on my big monitor's and my notebook's screens. Then, when I would re-connect my big monitor, the Terminal should appear on my big monitor, at the last position on that screen. If I disconnect my big monitor again, the Terminal should come back to the last position on my notebook's screen.

That is, the application should store the last monitor used and a table mapping each monitor to the position and dimensions the Terminal occupied on that monitor.

Originally posted by @igorakkerman in https://github.com/microsoft/terminal/issues/766#issuecomment-653671768


Should we have another issue for restoring the window state while it is running, but after an external monitor is disconnected and re-connected? (#766 (comment))

Originally created by @zadjii-msft on GitHub (Feb 16, 2021). Do not only remember the last monitor that was used, but also remember the last position used on other monitors. When I have the Terminal open on my big monitor and disconnect my notebook, it will appear on my notebook's screen, of course. Now, it would be great if Terminal remembered the last position used when it was open on my big monitor's _and_ my notebook's screens. Then, when I would re-connect my big monitor, the Terminal should appear on my big monitor, at the last position on that screen. If I disconnect my big monitor again, the Terminal should come back to the last position on my notebook's screen. That is, the application should store the last monitor used and a table mapping each monitor to the position and dimensions the Terminal occupied on that monitor. _Originally posted by @igorakkerman in https://github.com/microsoft/terminal/issues/766#issuecomment-653671768_ <hr> > Should we have another issue for restoring the window state _while it is running_, but after an external monitor is disconnected and re-connected? ([#766 (comment)](https://github.com/microsoft/terminal/issues/766#issuecomment-653671768))
claunia added the Issue-TaskNeeds-Tag-FixProduct-TerminalArea-UserInterface labels 2026-01-31 03:20:28 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12622