forge
Explore
Log in

Don't you dare go Hollow

Upgrade accesskit_unix to 0.22

Browse files at this commit

fdb6d85fc78355762bcf3cf71fe4037681a766f9Ivan MolodetskikhParent: 188c530
Seems the regression is fixed so we can now upgrade it.
Cargo.lockmodified+35 -30
@@ -4,39 +4,42 @@ version = 4
44
55 [[package]]
66 name = "accesskit"
7-version = "0.21.1"
7+version = "0.24.1"
88 source = "registry+https://github.com/rust-lang/crates.io-index"
9-checksum = "cf203f9d3bd8f29f98833d1fbef628df18f759248a547e7e01cfbf63cda36a99"
9+checksum = "d3b7f7f85a7e5f68090000ed7622545829afd484d210358702ae4cb97dd0c320"
10+dependencies = [
11+ "uuid",
12+]
1013
1114 [[package]]
1215 name = "accesskit_atspi_common"
13-version = "0.14.2"
16+version = "0.19.0"
1417 source = "registry+https://github.com/rust-lang/crates.io-index"
15-checksum = "890d241cf51fc784f0ac5ac34dfc847421f8d39da6c7c91a0fcc987db62a8267"
18+checksum = "7e98018dbef3583d751dbb96e07b8728fb99581360e1c3df408af16f4a80b821"
1619 dependencies = [
1720 "accesskit",
1821 "accesskit_consumer",
1922 "atspi-common",
23+ "phf",
2024 "serde",
21- "thiserror 1.0.69",
2225 "zvariant",
2326 ]
2427
2528 [[package]]
2629 name = "accesskit_consumer"
27-version = "0.31.0"
30+version = "0.37.0"
2831 source = "registry+https://github.com/rust-lang/crates.io-index"
29-checksum = "db81010a6895d8707f9072e6ce98070579b43b717193d2614014abd5cb17dd43"
32+checksum = "f950720ce064757a1b629caad3a408e8d2c63bb01f29b8a3ff8daa331053ffeb"
3033 dependencies = [
3134 "accesskit",
32- "hashbrown 0.15.5",
35+ "hashbrown 0.16.1",
3336 ]
3437
3538 [[package]]
3639 name = "accesskit_unix"
37-version = "0.17.2"
40+version = "0.22.0"
3841 source = "registry+https://github.com/rust-lang/crates.io-index"
39-checksum = "301e55b39cfc15d9c48943ce5f572204a551646700d0e8efa424585f94fec528"
42+checksum = "5376ba4cc23312587634abb5250b1ce8618f01a55915608209aafd01efb4bf8c"
4043 dependencies = [
4144 "accesskit",
4245 "accesskit_atspi_common",
@@ -371,20 +374,19 @@ checksum = "628d228f918ac3b82fe590352cc719d30664a0c13ca3a60266fe02c7132d480a"
371374
372375 [[package]]
373376 name = "atspi"
374-version = "0.25.0"
377+version = "0.29.0"
375378 source = "registry+https://github.com/rust-lang/crates.io-index"
376-checksum = "c83247582e7508838caf5f316c00791eee0e15c0bf743e6880585b867e16815c"
379+checksum = "c77886257be21c9cd89a4ae7e64860c6f0eefca799bb79127913052bd0eefb3d"
377380 dependencies = [
378381 "atspi-common",
379- "atspi-connection",
380382 "atspi-proxies",
381383 ]
382384
383385 [[package]]
384386 name = "atspi-common"
385-version = "0.9.0"
387+version = "0.13.0"
386388 source = "registry+https://github.com/rust-lang/crates.io-index"
387-checksum = "33dfc05e7cdf90988a197803bf24f5788f94f7c94a69efa95683e8ffe76cfdfb"
389+checksum = "20c5617155740c98003016429ad13fe43ce7a77b007479350a9f8bf95a29f63d"
388390 dependencies = [
389391 "enumflags2",
390392 "serde",
@@ -396,23 +398,11 @@ dependencies = [
396398 "zvariant",
397399 ]
398400
399-[[package]]
400-name = "atspi-connection"
401-version = "0.9.0"
402-source = "registry+https://github.com/rust-lang/crates.io-index"
403-checksum = "4193d51303d8332304056ae0004714256b46b6635a5c556109b319c0d3784938"
404-dependencies = [
405- "atspi-common",
406- "atspi-proxies",
407- "futures-lite",
408- "zbus",
409-]
410-
411401 [[package]]
412402 name = "atspi-proxies"
413-version = "0.9.0"
403+version = "0.13.0"
414404 source = "registry+https://github.com/rust-lang/crates.io-index"
415-checksum = "d2eebcb9e7e76f26d0bcfd6f0295e1cd1e6f33bedbc5698a971db8dc43d7751c"
405+checksum = "2230e48787ed3eb4088996eab66a32ca20c0b67bbd4fd6cdfe79f04f1f04c9fc"
416406 dependencies = [
417407 "atspi-common",
418408 "serde",
@@ -1150,6 +1140,12 @@ version = "0.1.5"
11501140 source = "registry+https://github.com/rust-lang/crates.io-index"
11511141 checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
11521142
1143+[[package]]
1144+name = "foldhash"
1145+version = "0.2.0"
1146+source = "registry+https://github.com/rust-lang/crates.io-index"
1147+checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
1148+
11531149 [[package]]
11541150 name = "foreign-types"
11551151 version = "0.5.0"
@@ -1656,7 +1652,16 @@ version = "0.15.5"
16561652 source = "registry+https://github.com/rust-lang/crates.io-index"
16571653 checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
16581654 dependencies = [
1659- "foldhash",
1655+ "foldhash 0.1.5",
1656+]
1657+
1658+[[package]]
1659+name = "hashbrown"
1660+version = "0.16.1"
1661+source = "registry+https://github.com/rust-lang/crates.io-index"
1662+checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
1663+dependencies = [
1664+ "foldhash 0.2.0",
16601665 ]
16611666
16621667 [[package]]
Cargo.tomlmodified+2 -5
@@ -51,11 +51,8 @@ readme = "README.md"
5151 keywords = ["wayland", "compositor", "tiling", "smithay", "wm"]
5252
5353 [dependencies]
54-# accesskit_unix 0.18 has a regression where it doesn't work in normal configurations.
55-# accesskit 0.21 is its correct dependent version.
56-# https://github.com/niri-wm/niri/issues/3594
57-accesskit = { version = "0.21", optional = true }
58-accesskit_unix = { version = "0.17", optional = true }
54+accesskit = { version = "0.24", optional = true }
55+accesskit_unix = { version = "0.22", optional = true }
5956 anyhow.workspace = true
6057 arrayvec = "0.7.6"
6158 async-channel = "2.5.0"
src/a11y.rsmodified+4 -1
@@ -3,7 +3,7 @@ use std::thread;
33
44 use accesskit::{
55 ActionHandler, ActionRequest, ActivationHandler, DeactivationHandler, Live, Node, NodeId, Role,
6- Tree, TreeUpdate,
6+ Tree, TreeId, TreeUpdate,
77 };
88 use accesskit_unix::Adapter;
99 use calloop::LoopHandle;
@@ -220,6 +220,7 @@ impl Niri {
220220 let update = TreeUpdate {
221221 nodes,
222222 tree: None,
223+ tree_id: TreeId::ROOT,
223224 focus,
224225 };
225226
@@ -246,6 +247,7 @@ impl Niri {
246247 let update = TreeUpdate {
247248 nodes: vec![(ID_ANNOUNCEMENT, node)],
248249 tree: None,
250+ tree_id: TreeId::ROOT,
249251 focus: self.a11y.focus,
250252 };
251253
@@ -339,6 +341,7 @@ impl Niri {
339341 (ID_MRU, mru),
340342 ],
341343 tree: Some(tree),
344+ tree_id: TreeId::ROOT,
342345 focus,
343346 }
344347 }