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) public bool Equals(WindowInfo other)
{ {
return WindowHandle == other.WindowHandle && return WindowHandle == other.WindowHandle &&
WindowPlacement.Equals(other.WindowPlacement) && WindowPlacement.Equals(other.WindowPlacement) &&
WindowTitle == other.WindowTitle && WindowTitle.Equals(other.WindowTitle) &&
ProcessInfo.Equals(other.ProcessInfo); ProcessInfo.ProcessName.Equals(other.ProcessInfo.ProcessName) &&
ProcessInfo.Id == other.ProcessInfo.Id;
} }
public override int GetHashCode() public override int GetHashCode()