[PR #11039] [MERGED] Make sure we keep event handlers on the control when detaching a pane #28366

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11039
Author: @Rosefield
Created: 8/25/2021
Status: Merged
Merged: 8/25/2021
Merged by: @undefined

Base: mainHead: bug/gh11035-move-tab-not-closing


📝 Commits (1)

  • 16ac8d6 Make sure we keep event handlers on the control when detaching a pane

📊 Changes

2 files changed (+31 additions, -22 deletions)

View changed files

📝 src/cascadia/TerminalApp/Pane.cpp (+30 -21)
📝 src/cascadia/TerminalApp/Pane.h (+1 -1)

📄 Description

When moving a pane to a new tab previously we removed the event handlers
on it as if we were closing it, but we are just moving it so we need to
keep them.

I tried really hard to make sure all of the events were hooked up
correctly, but I guess I missed these originally since they are normally
created in the Pane constructor.

Closes #11035

Validation Steps Performed

created panes, moved them to new tabs, confirmed that they close and
ding appropriately.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/11039 **Author:** [@Rosefield](https://github.com/Rosefield) **Created:** 8/25/2021 **Status:** ✅ Merged **Merged:** 8/25/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `bug/gh11035-move-tab-not-closing` --- ### 📝 Commits (1) - [`16ac8d6`](https://github.com/microsoft/terminal/commit/16ac8d6b565ec33ee55575f3f7f462260e8abbc8) Make sure we keep event handlers on the control when detaching a pane ### 📊 Changes **2 files changed** (+31 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/Pane.cpp` (+30 -21) 📝 `src/cascadia/TerminalApp/Pane.h` (+1 -1) </details> ### 📄 Description When moving a pane to a new tab previously we removed the event handlers on it as if we were closing it, but we are just moving it so we need to keep them. I tried really hard to make sure all of the events were hooked up correctly, but I guess I missed these originally since they are normally created in the Pane constructor. Closes #11035 ## Validation Steps Performed created panes, moved them to new tabs, confirmed that they close and ding appropriately. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:28:03 +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#28366