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))