From b26bbf608eaa7147f47997846545efc507d9076d Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Fri, 11 Aug 2023 11:18:01 -0700 Subject: [PATCH] ctrl click pw icon has side-effect of activating taskbar window, not meant to put taskbar to background --- .../Common/PersistentWindowProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs index 1448a7a..f474c3f 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs @@ -1742,7 +1742,7 @@ namespace PersistentWindows.Common public void SwitchForeBackground(IntPtr hwnd) { - if (hwnd == IntPtr.Zero) + if (hwnd == IntPtr.Zero || IsTaskBar(hwnd)) return; if (!monitorApplications.ContainsKey(curDisplayKey) || !monitorApplications[curDisplayKey].ContainsKey(hwnd))