-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Terminal failed to restore the position in the 2nd or 3rd monitor with maximized window mode. #11639
Comments
After you close the Terminal on the secondary monitor, can you copy the contents of |
initialPosition was saved on closing. However, Windows Terminal window got restored in primary monitor. After some time, initialPosition was changed into "0,0" |
Hmmmmmmm I wonder if the session restore in this scenario is running abreast of the "make sure the window fits on the monitor" logic. If the window was maximized, then I bet it's "too big" for the monitor, and so it gets splatted back to the origin. That's my theory, cause the state looks totally reasonable "persistedWindowLayouts" :
[
{
"initialPosition" : "3840,1066",
"initialSize" :
{
"height" : 1048.0,
"width" : 1920.0
},
"tabLayout" :
[
{
"action" : "newTab",
"commandline" : "%SystemRoot%\\System32\\cmd.exe",
"profile" : "Command Prompt",
"startingDirectory" : "C:\\Users\\XXX",
"suppressApplicationTitle" : false,
"tabTitle" : "Command Prompt"
}
]
}
] Might be related to #11426 |
I'm geting this exact behavior even on non-maximized Windows. |
Okay I actually did find that if I maximize on my third, vertical monitor, then we session restore onto the second, middle, ultrawide one. So at least I've got a repro |
Windows Terminal version (or Windows build number)
1.12.2922.0
Other Software
No response
Steps to reproduce
Given two or three monitors installed.
Steps:
Expected Behavior
Persist window layout on window close even with maximized window mode.
Actual Behavior
Windows Terminal windows is restored in the primary monitor instead, with the size of the secondary monitor.
The text was updated successfully, but these errors were encountered: