WindowInfo Equality on Process changed to Name and Id.

This commit is contained in:
glax 2024-04-15 22:56:15 +02:00
parent 1b83eea25f
commit c5e5922bee

View File

@ -26,8 +26,9 @@ public struct WindowInfo
{
return WindowHandle == other.WindowHandle &&
WindowPlacement.Equals(other.WindowPlacement) &&
WindowTitle == other.WindowTitle &&
ProcessInfo.Equals(other.ProcessInfo);
WindowTitle.Equals(other.WindowTitle) &&
ProcessInfo.ProcessName.Equals(other.ProcessInfo.ProcessName) &&
ProcessInfo.Id == other.ProcessInfo.Id;
}
public override int GetHashCode()