From fdb6d85fc78355762bcf3cf71fe4037681a766f9 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 16 Jun 2026 08:32:40 +0300 Subject: [PATCH] Upgrade accesskit_unix to 0.22 Seems the regression is fixed so we can now upgrade it. --- Cargo.lock | 65 ++++++++++++++++++++++++++++------------------------- Cargo.toml | 7 ++---- src/a11y.rs | 5 ++++- 3 files changed, 41 insertions(+), 36 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b03ba15c..83f4539e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,39 +4,42 @@ version = 4 [[package]] name = "accesskit" -version = "0.21.1" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf203f9d3bd8f29f98833d1fbef628df18f759248a547e7e01cfbf63cda36a99" +checksum = "d3b7f7f85a7e5f68090000ed7622545829afd484d210358702ae4cb97dd0c320" +dependencies = [ + "uuid", +] [[package]] name = "accesskit_atspi_common" -version = "0.14.2" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "890d241cf51fc784f0ac5ac34dfc847421f8d39da6c7c91a0fcc987db62a8267" +checksum = "7e98018dbef3583d751dbb96e07b8728fb99581360e1c3df408af16f4a80b821" dependencies = [ "accesskit", "accesskit_consumer", "atspi-common", + "phf", "serde", - "thiserror 1.0.69", "zvariant", ] [[package]] name = "accesskit_consumer" -version = "0.31.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db81010a6895d8707f9072e6ce98070579b43b717193d2614014abd5cb17dd43" +checksum = "f950720ce064757a1b629caad3a408e8d2c63bb01f29b8a3ff8daa331053ffeb" dependencies = [ "accesskit", - "hashbrown 0.15.5", + "hashbrown 0.16.1", ] [[package]] name = "accesskit_unix" -version = "0.17.2" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "301e55b39cfc15d9c48943ce5f572204a551646700d0e8efa424585f94fec528" +checksum = "5376ba4cc23312587634abb5250b1ce8618f01a55915608209aafd01efb4bf8c" dependencies = [ "accesskit", "accesskit_atspi_common", @@ -371,20 +374,19 @@ checksum = "628d228f918ac3b82fe590352cc719d30664a0c13ca3a60266fe02c7132d480a" [[package]] name = "atspi" -version = "0.25.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c83247582e7508838caf5f316c00791eee0e15c0bf743e6880585b867e16815c" +checksum = "c77886257be21c9cd89a4ae7e64860c6f0eefca799bb79127913052bd0eefb3d" dependencies = [ "atspi-common", - "atspi-connection", "atspi-proxies", ] [[package]] name = "atspi-common" -version = "0.9.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33dfc05e7cdf90988a197803bf24f5788f94f7c94a69efa95683e8ffe76cfdfb" +checksum = "20c5617155740c98003016429ad13fe43ce7a77b007479350a9f8bf95a29f63d" dependencies = [ "enumflags2", "serde", @@ -396,23 +398,11 @@ dependencies = [ "zvariant", ] -[[package]] -name = "atspi-connection" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4193d51303d8332304056ae0004714256b46b6635a5c556109b319c0d3784938" -dependencies = [ - "atspi-common", - "atspi-proxies", - "futures-lite", - "zbus", -] - [[package]] name = "atspi-proxies" -version = "0.9.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2eebcb9e7e76f26d0bcfd6f0295e1cd1e6f33bedbc5698a971db8dc43d7751c" +checksum = "2230e48787ed3eb4088996eab66a32ca20c0b67bbd4fd6cdfe79f04f1f04c9fc" dependencies = [ "atspi-common", "serde", @@ -1150,6 +1140,12 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + [[package]] name = "foreign-types" version = "0.5.0" @@ -1656,7 +1652,16 @@ version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" dependencies = [ - "foldhash", + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "foldhash 0.2.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index fa7164e9..8e343be3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,11 +51,8 @@ readme = "README.md" keywords = ["wayland", "compositor", "tiling", "smithay", "wm"] [dependencies] -# accesskit_unix 0.18 has a regression where it doesn't work in normal configurations. -# accesskit 0.21 is its correct dependent version. -# https://github.com/niri-wm/niri/issues/3594 -accesskit = { version = "0.21", optional = true } -accesskit_unix = { version = "0.17", optional = true } +accesskit = { version = "0.24", optional = true } +accesskit_unix = { version = "0.22", optional = true } anyhow.workspace = true arrayvec = "0.7.6" async-channel = "2.5.0" diff --git a/src/a11y.rs b/src/a11y.rs index 76d66f0f..62dbc08f 100644 --- a/src/a11y.rs +++ b/src/a11y.rs @@ -3,7 +3,7 @@ use std::thread; use accesskit::{ ActionHandler, ActionRequest, ActivationHandler, DeactivationHandler, Live, Node, NodeId, Role, - Tree, TreeUpdate, + Tree, TreeId, TreeUpdate, }; use accesskit_unix::Adapter; use calloop::LoopHandle; @@ -220,6 +220,7 @@ impl Niri { let update = TreeUpdate { nodes, tree: None, + tree_id: TreeId::ROOT, focus, }; @@ -246,6 +247,7 @@ impl Niri { let update = TreeUpdate { nodes: vec![(ID_ANNOUNCEMENT, node)], tree: None, + tree_id: TreeId::ROOT, focus: self.a11y.focus, }; @@ -339,6 +341,7 @@ impl Niri { (ID_MRU, mru), ], tree: Some(tree), + tree_id: TreeId::ROOT, focus, } }