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