From 7202cda28b0479e6409a3b968e3064ea69d77887 Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Sat, 11 Nov 2023 12:49:52 -0600 Subject: [PATCH] Limit new code to non-auto-hide --- RetroBar/Taskbar.xaml.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/RetroBar/Taskbar.xaml.cs b/RetroBar/Taskbar.xaml.cs index d57b226d..c73b73b3 100644 --- a/RetroBar/Taskbar.xaml.cs +++ b/RetroBar/Taskbar.xaml.cs @@ -292,8 +292,12 @@ private void Taskbar_OnSizeChanged(object sender, SizeChangedEventArgs e) private void Taskbar_Deactivated(object sender, EventArgs e) { - // Prevent focus indicators and tooltips while not the active window - ResetControlFocus(); + if (AppBarMode != AppBarMode.AutoHide) + { + // Prevent focus indicators and tooltips while not the active window + // When auto-hide is enabled, this is performed by auto-hide events instead + ResetControlFocus(); + } } private void DateTimeMenuItem_OnClick(object sender, RoutedEventArgs e)