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

@ -24,10 +24,11 @@ public struct WindowInfo
public bool Equals(WindowInfo other)
{
return WindowHandle == other.WindowHandle &&
WindowPlacement.Equals(other.WindowPlacement) &&
WindowTitle == other.WindowTitle &&
ProcessInfo.Equals(other.ProcessInfo);
return WindowHandle == other.WindowHandle &&
WindowPlacement.Equals(other.WindowPlacement) &&
WindowTitle.Equals(other.WindowTitle) &&
ProcessInfo.ProcessName.Equals(other.ProcessInfo.ProcessName) &&
ProcessInfo.Id == other.ProcessInfo.Id;
}
public override int GetHashCode()