[PR #10217] [MERGED] Summon this window when it receives an inbound connection #27957

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10217
Author: @miniksa
Created: 5/26/2021
Status: Merged
Merged: 5/27/2021
Merged by: @undefined

Base: mainHead: dev/miniksa/def_summon


📝 Commits (2)

  • 995dffa Summon this window when it receives an inbound connection
  • ab630f1 collapse calls for summoning to route through same handler

📊 Changes

7 files changed (+24 additions, -2 deletions)

View changed files

📝 src/cascadia/TerminalApp/AppLogic.h (+1 -0)
📝 src/cascadia/TerminalApp/AppLogic.idl (+1 -0)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+3 -0)
📝 src/cascadia/TerminalApp/TerminalPage.h (+1 -0)
📝 src/cascadia/TerminalApp/TerminalPage.idl (+1 -0)
📝 src/cascadia/WindowsTerminal/AppHost.cpp (+14 -2)
📝 src/cascadia/WindowsTerminal/AppHost.h (+3 -0)

📄 Description

Summon the listening window when it receives an inbound connection

PR Checklist

Detailed Description of the Pull Request / Additional comments

  • We cannot just send our window to foreground by simply calling user32 on the window handle. But fortunately, the remoting behavior already has a summon window function with a workaround for the Quake functionality.
  • This bubbles up an event from the TerminalApp's Page to the WindowsTerminal's Apphost so it can call the same window summoning behavior in IslandWindow as is triggered when the Monarch dictates this out of the Microsoft.Terminal.Remoting project.

Validation Steps Performed

  • Opened the Terminal with it registered as DefTerm. Activated some other windows to the foreground. Start > Run > Cmd. Tab connects and opens in existing Terminal and it is brought to foreground.
  • With no running Terminal and registered as DefTerm, do Start > Run > Cmd. New Terminal is spawned and it is brought to foreground

🔄 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/10217 **Author:** [@miniksa](https://github.com/miniksa) **Created:** 5/26/2021 **Status:** ✅ Merged **Merged:** 5/27/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/miniksa/def_summon` --- ### 📝 Commits (2) - [`995dffa`](https://github.com/microsoft/terminal/commit/995dffa514bc2b95df8883d378735ca73eef98a0) Summon this window when it receives an inbound connection - [`ab630f1`](https://github.com/microsoft/terminal/commit/ab630f128d22b23cdaf58780bd247845de34da02) collapse calls for summoning to route through same handler ### 📊 Changes **7 files changed** (+24 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/AppLogic.h` (+1 -0) 📝 `src/cascadia/TerminalApp/AppLogic.idl` (+1 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+3 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+1 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.idl` (+1 -0) 📝 `src/cascadia/WindowsTerminal/AppHost.cpp` (+14 -2) 📝 `src/cascadia/WindowsTerminal/AppHost.h` (+3 -0) </details> ### 📄 Description Summon the listening window when it receives an inbound connection ## PR Checklist * [x] Closes #9460 * [x] I work here. * [x] Manual test. ## Detailed Description of the Pull Request / Additional comments - We cannot just send our window to foreground by simply calling user32 on the window handle. But fortunately, the remoting behavior already has a summon window function with a workaround for the Quake functionality. - This bubbles up an event from the TerminalApp's Page to the WindowsTerminal's Apphost so it can call the same window summoning behavior in IslandWindow as is triggered when the Monarch dictates this out of the Microsoft.Terminal.Remoting project. ## Validation Steps Performed - Opened the Terminal with it registered as DefTerm. Activated some other windows to the foreground. Start > Run > Cmd. Tab connects and opens in existing Terminal and it is brought to foreground. - With no running Terminal and registered as DefTerm, do Start > Run > Cmd. New Terminal is spawned and it is brought to foreground --- <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:25:23 +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#27957