[PR #1042] [MERGED] Fix taskbar icon disappearing on Win11 when window loses focus #2869

Closed
opened 2026-03-01 17:23:34 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/1Remote/1Remote/pull/1042
Author: @Copilot
Created: 11/28/2025
Status: Merged
Merged: 12/1/2025
Merged by: @VShawn

Base: mainHead: copilot/fix-issue-1026-partial-fix


📝 Commits (2)

  • 6285008 Initial plan
  • 37a7ede Fix taskbar icon disappearing on Win11 when window loses focus

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 Ui/View/Host/TabWindowView.xaml.cs (+2 -0)

📄 Description

Completes fix for #1026. PR #1028 addressed the minimize/restore cycle, but taskbar icon still disappears on Windows 11 when the TabWindowView loses focus to another application without being minimized.

Changes

  • Set ShowInTaskbar = true in Activated event handler to restore taskbar icon whenever window regains focus
this.Activated += (_, _) =>
{
    this.StopFlashingWindow();
    // Ensure taskbar icon is visible when window is activated
    this.ShowInTaskbar = true;
};

This follows the existing pattern in MainWindowView.ShowMe() and complements the Show() call fixes from #1028.

Original prompt

ISSUE #1026 的补充回复显示,PR #1028 并没有能够完全修复这个问题。具体现象可以看用户最后的评论。

你需要先熟悉整个工程代码,然后根据issue描述去解决问题。


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.


🔄 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/1Remote/1Remote/pull/1042 **Author:** [@Copilot](https://github.com/apps/copilot-swe-agent) **Created:** 11/28/2025 **Status:** ✅ Merged **Merged:** 12/1/2025 **Merged by:** [@VShawn](https://github.com/VShawn) **Base:** `main` ← **Head:** `copilot/fix-issue-1026-partial-fix` --- ### 📝 Commits (2) - [`6285008`](https://github.com/1Remote/1Remote/commit/6285008d878bb805de9df3f1bcb443deb38e88f1) Initial plan - [`37a7ede`](https://github.com/1Remote/1Remote/commit/37a7edeb132faa9a29f866f9c8e0429ad29decd9) Fix taskbar icon disappearing on Win11 when window loses focus ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `Ui/View/Host/TabWindowView.xaml.cs` (+2 -0) </details> ### 📄 Description Completes fix for #1026. PR #1028 addressed the minimize/restore cycle, but taskbar icon still disappears on Windows 11 when the TabWindowView loses focus to another application without being minimized. ## Changes - Set `ShowInTaskbar = true` in `Activated` event handler to restore taskbar icon whenever window regains focus ```csharp this.Activated += (_, _) => { this.StopFlashingWindow(); // Ensure taskbar icon is visible when window is activated this.ShowInTaskbar = true; }; ``` This follows the existing pattern in `MainWindowView.ShowMe()` and complements the `Show()` call fixes from #1028. <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > ISSUE #1026 的补充回复显示,PR #1028 并没有能够完全修复这个问题。具体现象可以看用户最后的评论。 > > 你需要先熟悉整个工程代码,然后根据issue描述去解决问题。 </details> <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 17:23:34 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#2869
No description provided.