Prevent opening new tabs when clicking in taskbar pinned app on primary monitor with Windows Terminal opened in secondary monitor #20929

Closed
opened 2026-01-31 07:28:03 +00:00 by claunia · 2 comments
Owner

Originally created by @cakira on GitHub (Nov 30, 2023).

Description of the new feature/enhancement

I have a setup with 2 monitors. Also, I have Windows Terminal (WT) pinned to my taskbar.
Sometimes, I move WT to the secondary monitor and I forget it is open there. Then, I want to run a command in WT, so I click the WT icon in the taskbar in the primary monitor.
Current behavior: Clicking the icon causes the Windows Terminal on the secondary monitor to pop up and open a new tab.
Desired behavior: Clicking the icon could make the Windows Terminal on the secondary monitor pop up without opening a new tab.

This request is related to #14130, but it has an opposite behavior. That ticket asks to open a new window instead of a new tab, this ticket asks to not open a new tab at all.

Proposed technical implementation details (optional)

After reading the documentation and conducting tests, I found that calling wt.exe with the command line option "focus-tab" achieves the desired behavior. However, I'm unable to configure the taskbar-pinned app to run with command line options in Windows 11. A setting to make the option "focus-tab" implicit and automatic could address this.

Originally created by @cakira on GitHub (Nov 30, 2023). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> I have a setup with 2 monitors. Also, I have Windows Terminal (WT) pinned to my taskbar. Sometimes, I move WT to the secondary monitor and I forget it is open there. Then, I want to run a command in WT, so I click the WT icon in the taskbar in the primary monitor. _Current behavior:_ Clicking the icon causes the Windows Terminal on the secondary monitor to pop up and open a new tab. _Desired behavior:_ Clicking the icon could make the Windows Terminal on the secondary monitor pop up without opening a new tab. This request is related to #14130, but it has an opposite behavior. That ticket asks to open a new window instead of a new tab, this ticket asks to not open a new tab at all. # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. --> After reading the documentation and conducting tests, I found that calling `wt.exe` with the command line option "focus-tab" achieves the desired behavior. However, I'm unable to configure the taskbar-pinned app to run with command line options in Windows 11. A setting to make the option "focus-tab" implicit and automatic could address this.
claunia added the Issue-FeatureNeeds-TriageResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 07:28:04 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Dec 6, 2023):

Hmm. I've reached out to a contact on the Taskbar team. I believe this is just "by design" with the way the taskbar currently works. I think when taskbar is set to "taskbar where window is open", I think the taskbar breaks the connection between the pinned shortcut, and the open window. I think it might end up weirder if we try and deviate from the rest of the system behavior... But who knows! Maybe this is something they're already tracking 🤷

@zadjii-msft commented on GitHub (Dec 6, 2023): Hmm. I've reached out to a contact on the Taskbar team. I believe this is just "by design" with the way the taskbar currently works. I think when taskbar is set to "taskbar where window is open", I think the taskbar breaks the connection between the pinned shortcut, and the open window. I think it might end up _weirder_ if we try and deviate from the rest of the system behavior... But who knows! Maybe this is something they're already tracking 🤷
Author
Owner

@cakira commented on GitHub (Dec 15, 2023):

Now, I've noticed that my browser behaves exactly as @zadjii-msft described: when pinned to my taskbar and positioned on the second monitor, clicking its icon in the taskbar opens a new browser window.

Though it's somewhat annoying to me, if this is intentional or "by design," I agree that Windows Terminal should not deviate from this pattern.
So, I'm closing this feature request.

@cakira commented on GitHub (Dec 15, 2023): Now, I've noticed that my browser behaves exactly as @zadjii-msft described: when pinned to my taskbar and positioned on the second monitor, clicking its icon in the taskbar opens a new browser window. Though it's somewhat annoying to me, if this is intentional or "by design," I agree that Windows Terminal should not deviate from this pattern. So, I'm closing this feature request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20929