mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
inherit killed window pos: add default option when no exact match found
This commit is contained in:
parent
2a95cebe6a
commit
e166a3f89d
1 changed files with 6 additions and 0 deletions
|
@ -1093,6 +1093,7 @@ namespace PersistentWindows.Common
|
|||
{
|
||||
string procName = windowProcessName[hwnd];
|
||||
string title = GetWindowTitle(hwnd);
|
||||
long dflt_kid = -1;
|
||||
|
||||
foreach (var kid in deadAppPos.Keys)
|
||||
{
|
||||
|
@ -1113,7 +1114,12 @@ namespace PersistentWindows.Common
|
|||
// lastly match title
|
||||
if (title.Equals(appPos.Title))
|
||||
return kid;
|
||||
|
||||
dflt_kid = kid;
|
||||
}
|
||||
|
||||
if (dflt_kid != -1)
|
||||
return dflt_kid;
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue