ctrl click pw icon has side-effect of activating taskbar window, not meant to put taskbar to background

This commit is contained in:
Kang Yu 2023-08-11 11:18:01 -07:00
parent 253f97d687
commit b26bbf608e

View file

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