WindowInfo Equality on Process changed to Name and Id.
This commit is contained in:
parent
1b83eea25f
commit
c5e5922bee
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user