Skip to content

Prevent ConPTY from de-snapping the terminal - #13164

Merged
Dustin L. Howett (DHowett) merged 2 commits into
mainfrom
dev/migrie/b/13158-wow-its-so-bad
May 25, 2022
Merged

Dustin L. Howett (DHowett) merged 2 commits into
mainfrom
dev/migrie/b/13158-wow-its-so-bad

Conversation

@zadjii-msft

Copy link
Copy Markdown
Member

This is a big hammer to put out this fire. We're keeping the hiding around for now, cause we think that's likely the one that the internal tests use that we really care about here. If we need to bring this back, we can.

@ghost ghost added Area-Windowing Window frame, quake mode, tearout Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-0 Bugs that we consider release-blocking/recall-class (P0) Product-Terminal The new Windows Terminal. Severity-Blocking We won't ship a release like this! No-siree. labels May 24, 2022
// window. There seem to be many issues with this so far, and the quickest
// route to mitigate them seems to be limiting the interaction here to
// allowing ConPTY to minimize the terminal only. This will still allow
// bodgy scripts to hide the Terminal via GetConsoleWindow(), but should

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use ShowWindow to minimize it, then restore it, and then use ShowWindow again in the same session? Or does it get into a torn state?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure does! This is only preventing ShowWindow(GetConsoleWindow(), SW_SHOW) from going out to the terminal, the rest of the state still flows in to the pty window

@DHowett
Dustin L. Howett (DHowett) deleted the dev/migrie/b/13158-wow-its-so-bad branch May 25, 2022 20:01
Dustin L. Howett (DHowett) pushed a commit that referenced this pull request May 25, 2022
This is a big hammer to put out this fire. We're keeping the hiding around for now, cause we think that's likely the one that the internal tests use that we really care about here. If we need to bring this back, we can.

* [x] Closes #13158
* [x] Closes #13162
* [x] Validated these both manually
* [x] `[Native]::ShowWindow([Native]::GetConsoleWindow(), 6)` still works

(cherry picked from commit 11b810e)
Service-Card-Id: 82371517
Service-Version: 1.14
@ghost

Copy link
Copy Markdown

🎉Windows Terminal Preview v1.14.145 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Windowing Window frame, quake mode, tearout Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-0 Bugs that we consider release-blocking/recall-class (P0) Product-Terminal The new Windows Terminal. Severity-Blocking We won't ship a release like this! No-siree.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opening a new tab when the window is maximized causes it to restore down [1.14] Opening a tab makes the Terminal window resize

3 participants