relax title match when inherit killed window

This commit is contained in:
Kang Yu 2025-04-27 21:18:07 -07:00
parent 1a5d9442d2
commit 7dc0cbee82

View file

@ -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;