fix: filter Program Manager title, msedgewebview2 process (embedded components)
This commit is contained in:
parent
0cf6ab15d9
commit
3c7f970d4f
1 changed files with 7 additions and 1 deletions
|
|
@ -118,9 +118,15 @@ mod win_impl {
|
|||
if title.is_empty() {
|
||||
continue;
|
||||
}
|
||||
// "Program Manager" is always the Windows desktop shell, never a real window
|
||||
if title.trim().eq_ignore_ascii_case("program manager") {
|
||||
continue;
|
||||
}
|
||||
let process_name = hwnd_process_name(*hwnd).unwrap_or_default();
|
||||
let proc_lower = process_name.to_lowercase();
|
||||
// ApplicationFrameHost is a UWP container — always a duplicate of the real app window
|
||||
if process_name.to_lowercase() == "applicationframehost" {
|
||||
// MsEdgeWebView2 is an embedded browser component, never a standalone user window
|
||||
if proc_lower == "applicationframehost" || proc_lower == "msedgewebview2" {
|
||||
continue;
|
||||
}
|
||||
raw_windows.push((*hwnd, title, process_name));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue