From ec349dcee8bdc8b3fd57c84a5487fdca4fe8b009 Mon Sep 17 00:00:00 2001 From: Arnold Loubriat Date: Tue, 1 Sep 2026 20:39:08 +0200 Subject: [PATCH] fix: Expose non-disabled nodes as enabled and sensitive on Unix --- adapters/atspi-common/src/node.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/adapters/atspi-common/src/node.rs b/adapters/atspi-common/src/node.rs index f3223e530..a05062649 100644 --- a/adapters/atspi-common/src/node.rs +++ b/adapters/atspi-common/src/node.rs @@ -373,10 +373,12 @@ impl NodeWrapper<'_> { _ => {} } - if state.is_read_only_supported() && state.is_read_only_or_disabled() { - atspi_state.insert(State::ReadOnly); - } else { - atspi_state.insert(State::Enabled | State::Sensitive); + if !state.is_disabled() { + if state.is_read_only_supported() && state.is_read_only() { + atspi_state.insert(State::ReadOnly); + } else { + atspi_state.insert(State::Enabled | State::Sensitive); + } } if self.is_focused() {