WSL window does not remember last size/position #8647

Closed
opened 2026-01-31 01:34:35 +00:00 by claunia · 2 comments
Owner

Originally created by @vanzod on GitHub (May 28, 2020).

Environment

Windows build number: Version 10.0.18363 Build 18363
Windows Terminal version (if applicable): 

Any other software?

Steps to reproduce

To reproduce:

  1. Open a WSL screen
  2. Modify screen position and size
  3. Close the window (ensure it is the last WSL window closed)
  4. Open a new WSL window. The position and size do not match the previously closed window.

Expected behavior

The position/size of a new WSL window should be the same as the latest closed window, consistently with the standard Win 10 behavior.

Actual behavior

When opening a new WSL window, the position and size does not reflect the position/size of the last closed window. The window is outside the screen, requiring a move/resize operation every time.

Originally created by @vanzod on GitHub (May 28, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ``` Windows build number: Version 10.0.18363 Build 18363 Windows Terminal version (if applicable): Any other software? ``` # Steps to reproduce To reproduce: 1. Open a WSL screen 2. Modify screen position and size 3. Close the window (ensure it is the last WSL window closed) 4. Open a new WSL window. The position and size do not match the previously closed window. # Expected behavior The position/size of a new WSL window should be the same as the latest closed window, consistently with the standard Win 10 behavior. # Actual behavior When opening a new WSL window, the position and size does not reflect the position/size of the last closed window. The window is outside the screen, requiring a move/resize operation every time.
claunia added the Resolution-Duplicate label 2026-01-31 01:34:35 +00:00
Author
Owner

@zadjii-msft commented on GitHub (May 28, 2020):

shudders

This was the first ever feature I ever worked on at Microsoft, nearly 5 years ago. We wanted to grant conhost this capability, but I screwed something up, and we ended up writing the registry on every single window movement. Only, I screwed it up worse, and forgot to free the reg key, so there was a horrible memory leak every time the window moved.

So we backed it out, and never came back to it.

At this point, we're not about to invest time into the vintage console anymore. There's #766 for tracking the same feature request on the Windows Terminal, so I'm going to close this as a dup of that one.

Thanks!

/dup #766

@zadjii-msft commented on GitHub (May 28, 2020): *shudders* This was the first ever feature I ever worked on at Microsoft, nearly 5 years ago. We wanted to grant conhost this capability, but I screwed something up, and we ended up writing the registry on every single window movement. Only, I screwed it up worse, and forgot to free the reg key, so there was a horrible memory leak _every time the window moved_. So we backed it out, and never came back to it. At this point, we're not about to invest time into the vintage console anymore. There's #766 for tracking the same feature request on the Windows Terminal, so I'm going to close this as a dup of that one. Thanks! /dup #766
Author
Owner

@ghost commented on GitHub (May 28, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (May 28, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8647