[PR #10179] [MERGED] Add tray icon when quake window is minimized #27945

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10179
Author: @leonMSFT
Created: 5/25/2021
Status: Merged
Merged: 7/8/2021
Merged by: @leonMSFT

Base: mainHead: dev/lelian/notifyicon/proto


📝 Commits (10+)

📊 Changes

14 files changed (+141 additions, -12 deletions)

View changed files

📝 .github/actions/spelling/allow/apis.txt (+7 -0)
📝 .github/actions/spelling/expect/expect.txt (+2 -0)
📝 src/cascadia/WinRTUtils/WinRTUtils.vcxproj (+1 -1)
📝 src/cascadia/WinRTUtils/inc/ScopedResourceLoader.h (+0 -0)
📝 src/cascadia/WindowsTerminal/AppHost.cpp (+82 -1)
📝 src/cascadia/WindowsTerminal/AppHost.h (+5 -0)
📝 src/cascadia/WindowsTerminal/BaseWindow.h (+1 -3)
src/cascadia/WindowsTerminal/CustomWindowMessages.h (+8 -0)
📝 src/cascadia/WindowsTerminal/IslandWindow.cpp (+14 -0)
📝 src/cascadia/WindowsTerminal/IslandWindow.h (+2 -0)
📝 src/cascadia/WindowsTerminal/WindowsTerminal.vcxproj (+5 -0)
📝 src/cascadia/WindowsTerminal/icon.cpp (+12 -7)
📝 src/cascadia/WindowsTerminal/icon.h (+1 -0)
📝 src/cascadia/WindowsTerminal/pch.h (+1 -0)

📄 Description

This PR is a small start in a broader "Minimize to Tray" feature (#5727).
This particular change is scoped only to the scenario when a quake window
is minimized. Currently the only way to bring back the quake window
when it's minimized is to press the global hotkey again. This gives another
option - to press the terminal icon in the tray.

Eventually though, minimize to tray will be available for any window, and
I'd like more time to flesh out the general porpoise scenarios and context
menus. Having just a bit in this PR also helps reviewers by keeping it small!


🔄 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/10179 **Author:** [@leonMSFT](https://github.com/leonMSFT) **Created:** 5/25/2021 **Status:** ✅ Merged **Merged:** 7/8/2021 **Merged by:** [@leonMSFT](https://github.com/leonMSFT) **Base:** `main` ← **Head:** `dev/lelian/notifyicon/proto` --- ### 📝 Commits (10+) - [`150efbb`](https://github.com/microsoft/terminal/commit/150efbb01f2ad9c089c6e7064f90b5148c5fadc5) initial - [`87238e1`](https://github.com/microsoft/terminal/commit/87238e108e74b0dd6ba7921729f33eecbfcc956a) give it a fresh look - [`b3ae922`](https://github.com/microsoft/terminal/commit/b3ae922b7ff29aeea688fd610943f5c6ee71292f) scaffolding for MinimizeToTray action - [`7964b5a`](https://github.com/microsoft/terminal/commit/7964b5a0a732ef365da18e715f451372eca3709d) scoping to quek only - [`eee447c`](https://github.com/microsoft/terminal/commit/eee447cdcc6e521735146cfba0a6914aa359787a) cleanup - [`a83686a`](https://github.com/microsoft/terminal/commit/a83686a66ad6de2f2cf94dd02a806ae989c84b35) using the correct term - [`e8462e0`](https://github.com/microsoft/terminal/commit/e8462e0156a35c0d270eb846239c4ecc138577ae) not sure if necessary, but try not to add every single time - [`b2b76ca`](https://github.com/microsoft/terminal/commit/b2b76ca62a703236c5ac7a0af6a4237818a02177) remove when no longer quake - [`ce22c0c`](https://github.com/microsoft/terminal/commit/ce22c0c45e81850e3e1bf2e62101e10c909ad1ea) pr comments, spelling - [`8fa4718`](https://github.com/microsoft/terminal/commit/8fa47182dd678b4e367d00d5d5f51395e2924438) ok ok ok fine ### 📊 Changes **14 files changed** (+141 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `.github/actions/spelling/allow/apis.txt` (+7 -0) 📝 `.github/actions/spelling/expect/expect.txt` (+2 -0) 📝 `src/cascadia/WinRTUtils/WinRTUtils.vcxproj` (+1 -1) 📝 `src/cascadia/WinRTUtils/inc/ScopedResourceLoader.h` (+0 -0) 📝 `src/cascadia/WindowsTerminal/AppHost.cpp` (+82 -1) 📝 `src/cascadia/WindowsTerminal/AppHost.h` (+5 -0) 📝 `src/cascadia/WindowsTerminal/BaseWindow.h` (+1 -3) ➕ `src/cascadia/WindowsTerminal/CustomWindowMessages.h` (+8 -0) 📝 `src/cascadia/WindowsTerminal/IslandWindow.cpp` (+14 -0) 📝 `src/cascadia/WindowsTerminal/IslandWindow.h` (+2 -0) 📝 `src/cascadia/WindowsTerminal/WindowsTerminal.vcxproj` (+5 -0) 📝 `src/cascadia/WindowsTerminal/icon.cpp` (+12 -7) 📝 `src/cascadia/WindowsTerminal/icon.h` (+1 -0) 📝 `src/cascadia/WindowsTerminal/pch.h` (+1 -0) </details> ### 📄 Description This PR is a small start in a broader "Minimize to Tray" feature (#5727). This particular change is scoped only to the scenario when a quake window is minimized. Currently the only way to bring back the quake window when it's minimized is to press the global hotkey again. This gives another option - to press the terminal icon in the tray. Eventually though, minimize to tray will be available for any window, and I'd like more time to flesh out the general porpoise scenarios and context menus. Having just a bit in this PR also helps reviewers by keeping it small! --- <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:19 +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#27945