-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Ensure we are in the foreground when closed with multiple tabs open #15713
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
base: main
Are you sure you want to change the base?
Conversation
… that we can handle it at the host layer and ensure we are brought to the foreground.
…t on multi monintor setups. Use the deferred event pattern to handle that
@zadjii-msft Im struggling with the edge case. Works fine if you Open to suggestions :) |
Actually, I found something that works though not for a Maximized terminal window. I dont think anything I did would have broken that though. Will try to confirm if that is already broken and if so open an issue. |
Maybe I am miss understanding what |
I think I may see what the issue is. When you hover over the icon on the taskbar to click the x a new window is created to show the preview and that is what is given as the Needless to say this PR is not ready yet. |
(I'm gonna convert this to a draft while you work on it)
Alternatively, |
Thanks 😁 |
We got a big windowing rearchitecture in between when this PR was filed and I realized it was sitting in the draft queue (Today!) Really sorry about the atrociously slow review speed 😦 What should we do with it? |
Summary of the Pull Request
TerminalPage
andTerminalWindow
that can be raised when the terminal is closed with multiple tabs opened. This event can be handled in theAppHost
by summoning the window.References and Relevant Issues
#12605
Detailed Description of the Pull Request / Additional comments
I initially implemented this as a
WINRT_CALLBACK
but it kind of stuck out in the host layer so I decided to switch it to aTypedEvent
. This will also allow for information passing if so desired in the future.Validation Steps Performed
Validated that the window is brought to the foreground when multiple tabs are open so that the Confirm dialog is seen. Window is not summoned if only a single tab is open.
PR Checklist