[PR #2438] When the titlebar is clicked, dismiss the new tab flyout #24936

Open
opened 2026-01-31 09:06:12 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/2438

State: closed
Merged: Yes


Summary of the Pull Request

  • Add a method to App to indicate to the app that the titlebar has been clicked. We'll use this method to Hide the flyout.
  • In NonClientIslandWindow, treat the titlebar as HTNOWHERE, so we get clicks in that area.
  • In NonClientIslandWindow, raise an event when the titlebar area is clicked. Also do the normal HTCAPTION thing we were doing before.
  • In AppHost, when it handles the event from NonClientIslandWindow, it'll call the method on App to close the flyout.

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/2438 **State:** closed **Merged:** Yes --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request * Add a method to `App` to indicate to the app that the titlebar has been clicked. We'll use this method to `Hide` the flyout. * In `NonClientIslandWindow`, treat the titlebar as `HTNOWHERE`, so we get clicks in that area. * In `NonClientIslandWindow`, raise an event when the titlebar area is clicked. Also do the normal `HTCAPTION` thing we were doing before. * In `AppHost`, when it handles the event from `NonClientIslandWindow`, it'll call the method on `App` to close the flyout. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #2028 * [N/A] Tests added/passed
claunia added the pull-request label 2026-01-31 09:06:12 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24936