mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
inherit killed window: improved matching for windows core app
This commit is contained in:
parent
8d68937a96
commit
dfe5dbd16c
1 changed files with 13 additions and 2 deletions
|
@ -1096,10 +1096,21 @@ namespace PersistentWindows.Common
|
|||
|
||||
var deadAppPos = deadApps[curDisplayKey];
|
||||
string className = GetWindowClassName(hwnd);
|
||||
if (string.IsNullOrEmpty(className))
|
||||
return -1;
|
||||
|
||||
string procName = windowProcessName[hwnd];
|
||||
string title = GetWindowTitle(hwnd);
|
||||
if (className.Equals("ApplicationFrameWindow"))
|
||||
{
|
||||
//retrieve info about windows core app hidden under top window
|
||||
IntPtr realHwnd = GetCoreAppWindow(hwnd);
|
||||
className = GetWindowClassName(realHwnd);
|
||||
title = GetWindowTitle(realHwnd);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(className))
|
||||
{
|
||||
string procName = windowProcessName[hwnd];
|
||||
string title = GetWindowTitle(hwnd);
|
||||
long dflt_kid = -1;
|
||||
|
||||
foreach (var kid in deadAppPos.Keys)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue