From c5e5922bee71a6972893c16a310f100f843f57c6 Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 15 Apr 2024 22:56:15 +0200 Subject: [PATCH] WindowInfo Equality on Process changed to Name and Id. --- OBSBlur/Window/WindowInfo.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/OBSBlur/Window/WindowInfo.cs b/OBSBlur/Window/WindowInfo.cs index 4dfc808..0634369 100644 --- a/OBSBlur/Window/WindowInfo.cs +++ b/OBSBlur/Window/WindowInfo.cs @@ -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()