mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-10 20:45:38 +02:00
ctrl click pw icon has side-effect of activating taskbar window, not meant to put taskbar to background
This commit is contained in:
parent
253f97d687
commit
b26bbf608e
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue