Skip to content

Commit 8d65ebe

Browse files
CopilotVShawn
andauthored
Fix taskbar icon disappearing on Win11 when window loses focus (#1042)
* Initial plan * Fix taskbar icon disappearing on Win11 when window loses focus Add ShowInTaskbar = true to Activated event handler to ensure the taskbar icon remains visible when the TabWindowView regains focus after being switched to the background by other applications. This complements PR #1028 which fixed the minimize/restore case. Fixes #1026 Co-authored-by: VShawn <10143738+VShawn@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: VShawn <10143738+VShawn@users.noreply.github.com>
1 parent f93390a commit 8d65ebe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Ui/View/Host/TabWindowView.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ public TabWindowView()
120120
this.Activated += (_, _) =>
121121
{
122122
this.StopFlashingWindow();
123+
// Ensure taskbar icon is visible when window is activated (fixes Win11 issue where taskbar icon disappears when window loses focus)
124+
this.ShowInTaskbar = true;
123125
};
124126

125127
if (IoC.Get<LocalityService>().TabWindowState != System.Windows.WindowState.Minimized)

0 commit comments

Comments
 (0)