From 7dc0cbee82340d1b6bb43d51c9a9c812d245da7f Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Sun, 27 Apr 2025 21:18:07 -0700 Subject: [PATCH] relax title match when inherit killed window --- .../Common/PersistentWindowProcessor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs index acacb9e..f074423 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs @@ -1540,9 +1540,6 @@ namespace PersistentWindows.Common } } - if (title_match_cnt == 1) - return title_match_hid; - if (pos_match_cnt == 1) return pos_match_hid; @@ -1551,6 +1548,9 @@ namespace PersistentWindows.Common Log.Event($"found similar match with pos diff of {diff_size}"); return similar_pos_hid; } + + if (title_match_cnt == 1) + return title_match_hid; } return IntPtr.Zero;