-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Respect the startup info state initially passed to wt
via ShellExecute
#13838
Respect the startup info state initially passed to wt
via ShellExecute
#13838
Conversation
…is got so brboken" This reverts commit 103beb4.
This hooks up the defterm interface to pass more info along in the startup. It's notably not the actual link title, but it does work from a plumbing standpoint This is for #9458
…rtupInfoToTerminal
…rtupInfoToTerminal
…rtupInfoToTerminal
…rtupInfoToTerminal
This reverts commit 1fac403.
…t-3-the-actual-doing-of-the-thing
|
oh it was so much easier than that |
This comment has been minimized.
This comment has been minimized.
…t-3-the-actual-doing-of-the-thing
…t-3-the-actual-doing-of-the-thing
We had a report in a mail thread that someone's Terminal windows were getting created hidden, and never showing themselves. As a theory, I'm guessing that dwFlags didn't say that we should actually use `wShowWindow`. So, to be more correct, let's actually obey that. I'm gonna send this package to them to see if it fixes them. Related to #14957. Likely regressed in #13838.
We had a report in a mail thread that someone's Terminal windows were getting created hidden, and never showing themselves. As a theory, I'm guessing that dwFlags didn't say that we should actually use `wShowWindow`. So, to be more correct, let's actually obey that. I'm gonna send this package to them to see if it fixes them. Related to #14957. Likely regressed in #13838.
Original description, pre-process model v3:
More accurately:
This PR enables terminal windows to use the
wShowCmd
from the STARTUPINFO passed towindowsterminal.exe
to set the initial visibility of the window. We can't just useSW_SHOWDEFAULT
, because all the windows are running in the initial process! After the first window, the subsequent ones would ignore any params passed to their originatingwindowsterminal.exe
processes. To mitigate, we pass thatwShowCmd
info from the source process, to the actual running terminal process. That accounts for most of the delta here.Closes #9053
This doesn't do the same for defterm-initiated connections. This is because we don't need to! Defterm very explicitly rejects handoff for minimized console apps. This is probably for the best! I put an attempt in 66f8b25 before I forgot that it was filtered long before the Terminal. NOT doing this for /min saves us all sorts of "what happens if
start /min cmd
tries to glom?" or "what if someone doesstart /min cmd && start /max cmd
and they glom together?".Also closes #15193, which was introduced as a part of this.