Skip to content
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

Prevent ConPTY from de-snapping the terminal #13164

Merged
merged 2 commits into from
May 25, 2022

Conversation

zadjii-msft
Copy link
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
@zadjii-msft zadjii-msft added this to the Terminal v1.14 milestone 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
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
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 DHowett merged commit 11b810e into main May 25, 2022
@DHowett DHowett deleted the dev/migrie/b/13158-wow-its-so-bad branch May 25, 2022 20:01
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

ghost commented Jun 10, 2022

🎉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
3 participants