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
4 4
5 [[package]]5 [[package]]
6 name = "accesskit"6 name = "accesskit"
7-version = "0.21.1"7+version = "0.24.1"
8 source = "registry+https://github.com/rust-lang/crates.io-index"8 source = "registry+https://github.com/rust-lang/crates.io-index"
9-checksum = "cf203f9d3bd8f29f98833d1fbef628df18f759248a547e7e01cfbf63cda36a99"9+checksum = "d3b7f7f85a7e5f68090000ed7622545829afd484d210358702ae4cb97dd0c320"
10+dependencies = [
11+ "uuid",
12+]
10 13
11 [[package]]14 [[package]]
12 name = "accesskit_atspi_common"15 name = "accesskit_atspi_common"
13-version = "0.14.2"16+version = "0.19.0"
14 source = "registry+https://github.com/rust-lang/crates.io-index"17 source = "registry+https://github.com/rust-lang/crates.io-index"
15-checksum = "890d241cf51fc784f0ac5ac34dfc847421f8d39da6c7c91a0fcc987db62a8267"18+checksum = "7e98018dbef3583d751dbb96e07b8728fb99581360e1c3df408af16f4a80b821"
16 dependencies = [19 dependencies = [
17 "accesskit",20 "accesskit",
18 "accesskit_consumer",21 "accesskit_consumer",
19 "atspi-common",22 "atspi-common",
23+ "phf",
20 "serde",24 "serde",
21- "thiserror 1.0.69",
22 "zvariant",25 "zvariant",
23 ]26 ]
24 27
25 [[package]]28 [[package]]
26 name = "accesskit_consumer"29 name = "accesskit_consumer"
27-version = "0.31.0"30+version = "0.37.0"
28 source = "registry+https://github.com/rust-lang/crates.io-index"31 source = "registry+https://github.com/rust-lang/crates.io-index"
29-checksum = "db81010a6895d8707f9072e6ce98070579b43b717193d2614014abd5cb17dd43"32+checksum = "f950720ce064757a1b629caad3a408e8d2c63bb01f29b8a3ff8daa331053ffeb"
30 dependencies = [33 dependencies = [
31 "accesskit",34 "accesskit",
32- "hashbrown 0.15.5",35+ "hashbrown 0.16.1",
33 ]36 ]
34 37
35 [[package]]38 [[package]]
36 name = "accesskit_unix"39 name = "accesskit_unix"
37-version = "0.17.2"40+version = "0.22.0"
38 source = "registry+https://github.com/rust-lang/crates.io-index"41 source = "registry+https://github.com/rust-lang/crates.io-index"
39-checksum = "301e55b39cfc15d9c48943ce5f572204a551646700d0e8efa424585f94fec528"42+checksum = "5376ba4cc23312587634abb5250b1ce8618f01a55915608209aafd01efb4bf8c"
40 dependencies = [43 dependencies = [
41 "accesskit",44 "accesskit",
42 "accesskit_atspi_common",45 "accesskit_atspi_common",
@@ -371,20 +374,19 @@ checksum = "628d228f918ac3b82fe590352cc719d30664a0c13ca3a60266fe02c7132d480a"
371 374
372 [[package]]375 [[package]]
373 name = "atspi"376 name = "atspi"
374-version = "0.25.0"377+version = "0.29.0"
375 source = "registry+https://github.com/rust-lang/crates.io-index"378 source = "registry+https://github.com/rust-lang/crates.io-index"
376-checksum = "c83247582e7508838caf5f316c00791eee0e15c0bf743e6880585b867e16815c"379+checksum = "c77886257be21c9cd89a4ae7e64860c6f0eefca799bb79127913052bd0eefb3d"
377 dependencies = [380 dependencies = [
378 "atspi-common",381 "atspi-common",
379- "atspi-connection",
380 "atspi-proxies",382 "atspi-proxies",
381 ]383 ]
382 384
383 [[package]]385 [[package]]
384 name = "atspi-common"386 name = "atspi-common"
385-version = "0.9.0"387+version = "0.13.0"
386 source = "registry+https://github.com/rust-lang/crates.io-index"388 source = "registry+https://github.com/rust-lang/crates.io-index"
387-checksum = "33dfc05e7cdf90988a197803bf24f5788f94f7c94a69efa95683e8ffe76cfdfb"389+checksum = "20c5617155740c98003016429ad13fe43ce7a77b007479350a9f8bf95a29f63d"
388 dependencies = [390 dependencies = [
389 "enumflags2",391 "enumflags2",
390 "serde",392 "serde",
@@ -396,23 +398,11 @@ dependencies = [
396 "zvariant",398 "zvariant",
397 ]399 ]
398 400
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-
411 [[package]]401 [[package]]
412 name = "atspi-proxies"402 name = "atspi-proxies"
413-version = "0.9.0"403+version = "0.13.0"
414 source = "registry+https://github.com/rust-lang/crates.io-index"404 source = "registry+https://github.com/rust-lang/crates.io-index"
415-checksum = "d2eebcb9e7e76f26d0bcfd6f0295e1cd1e6f33bedbc5698a971db8dc43d7751c"405+checksum = "2230e48787ed3eb4088996eab66a32ca20c0b67bbd4fd6cdfe79f04f1f04c9fc"
416 dependencies = [406 dependencies = [
417 "atspi-common",407 "atspi-common",
418 "serde",408 "serde",
@@ -1150,6 +1140,12 @@ version = "0.1.5"
1150 source = "registry+https://github.com/rust-lang/crates.io-index"1140 source = "registry+https://github.com/rust-lang/crates.io-index"
1151 checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"1141 checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
1152 1142
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+
1153 [[package]]1149 [[package]]
1154 name = "foreign-types"1150 name = "foreign-types"
1155 version = "0.5.0"1151 version = "0.5.0"
@@ -1656,7 +1652,16 @@ version = "0.15.5"
1656 source = "registry+https://github.com/rust-lang/crates.io-index"1652 source = "registry+https://github.com/rust-lang/crates.io-index"
1657 checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"1653 checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
1658 dependencies = [1654 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",
1660 ]1665 ]
1661 1666
1662 [[package]]1667 [[package]]
Cargo.tomlmodified+2 -5
@@ -51,11 +51,8 @@ readme = "README.md"
51 keywords = ["wayland", "compositor", "tiling", "smithay", "wm"]51 keywords = ["wayland", "compositor", "tiling", "smithay", "wm"]
52 52
53 [dependencies]53 [dependencies]
54-# accesskit_unix 0.18 has a regression where it doesn't work in normal configurations.54+accesskit = { version = "0.24", optional = true }
55-# accesskit 0.21 is its correct dependent version.55+accesskit_unix = { version = "0.22", optional = true }
56-# https://github.com/niri-wm/niri/issues/3594
57-accesskit = { version = "0.21", optional = true }
58-accesskit_unix = { version = "0.17", optional = true }
59 anyhow.workspace = true56 anyhow.workspace = true
60 arrayvec = "0.7.6"57 arrayvec = "0.7.6"
61 async-channel = "2.5.0"58 async-channel = "2.5.0"
src/a11y.rsmodified+4 -1
@@ -3,7 +3,7 @@ use std::thread;
3 3
4 use accesskit::{4 use accesskit::{
5 ActionHandler, ActionRequest, ActivationHandler, DeactivationHandler, Live, Node, NodeId, Role,5 ActionHandler, ActionRequest, ActivationHandler, DeactivationHandler, Live, Node, NodeId, Role,
6- Tree, TreeUpdate,6+ Tree, TreeId, TreeUpdate,
7 };7 };
8 use accesskit_unix::Adapter;8 use accesskit_unix::Adapter;
9 use calloop::LoopHandle;9 use calloop::LoopHandle;
@@ -220,6 +220,7 @@ impl Niri {
220 let update = TreeUpdate {220 let update = TreeUpdate {
221 nodes,221 nodes,
222 tree: None,222 tree: None,
223+ tree_id: TreeId::ROOT,
223 focus,224 focus,
224 };225 };
225 226
@@ -246,6 +247,7 @@ impl Niri {
246 let update = TreeUpdate {247 let update = TreeUpdate {
247 nodes: vec![(ID_ANNOUNCEMENT, node)],248 nodes: vec![(ID_ANNOUNCEMENT, node)],
248 tree: None,249 tree: None,
250+ tree_id: TreeId::ROOT,
249 focus: self.a11y.focus,251 focus: self.a11y.focus,
250 };252 };
251 253
@@ -339,6 +341,7 @@ impl Niri {
339 (ID_MRU, mru),341 (ID_MRU, mru),
340 ],342 ],
341 tree: Some(tree),343 tree: Some(tree),
344+ tree_id: TreeId::ROOT,
342 focus,345 focus,
343 }346 }
344 }347 }