fix: filter Program Manager title, msedgewebview2 process (embedded components)

This commit is contained in:
Helios 2026-03-06 02:45:38 +01:00
parent 0cf6ab15d9
commit 3c7f970d4f
No known key found for this signature in database
GPG key ID: C8259547CD8309B5

View file

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