Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(a11y): exclude gnome-shell from focused window lookup on Linux (#7441)

root0ccecdd52c42
diff --git a/crates/screenpipe-a11y/src/tree/linux.rs b/crates/screenpipe-a11y/src/tree/linux.rs
index b99f14181..3243210ca 100644
--- a/crates/screenpipe-a11y/src/tree/linux.rs
+++ b/crates/screenpipe-a11y/src/tree/linux.rs
@@ -218,6 +218,9 @@ const EXCLUDED_APPS: &[&str] = &[
// Window managers / desktop shells — no user content
"xfwm4",
"mutter",
+ // GNOME Shell (Wayland) exposes its "Main stage" window as always FOCUSED and
+ // is listed first by the AT-SPI registry, so it would shadow the real ACTIVE window.
+ "gnome-shell",
"muffin",
"kwin",
"marco",
@@ -1524,6 +1527,7 @@ mod tests {
fn test_excluded_apps() {
assert!(EXCLUDED_APPS.iter().any(|ex| "1password".contains(ex)));
assert!(EXCLUDED_APPS.iter().any(|ex| "keepassxc".contains(ex)));
+ assert!(EXCLUDED_APPS.iter().any(|ex| "gnome-shell".contains(ex)));
assert!(!EXCLUDED_APPS.iter().any(|ex| "firefox".contains(ex)));
}