From 4bad20a24cfb1fc1b7cce09a09438614a2db9a4d Mon Sep 17 00:00:00 2001 From: Helios Agent Date: Tue, 3 Mar 2026 15:35:58 +0100 Subject: [PATCH] fix(client): filter invisible windows server-side, log shows real count --- crates/client/src/windows_mgmt.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/client/src/windows_mgmt.rs b/crates/client/src/windows_mgmt.rs index ebc895e..b3d6298 100644 --- a/crates/client/src/windows_mgmt.rs +++ b/crates/client/src/windows_mgmt.rs @@ -45,13 +45,14 @@ mod win_impl { for hwnd in hwnds { let visible = unsafe { IsWindowVisible(hwnd).as_bool() }; let title = hwnd_title(hwnd); - if title.is_empty() { + // Only return visible windows with a non-empty title + if !visible || title.is_empty() { continue; } windows.push(WindowInfo { id: hwnd.0 as u64, title, - visible, + visible: true, }); } Ok(windows)