Skip to content

Commit 9a4ae1f

Browse files
committed
Sets tree_id field in TreeUpdate
1 parent f8433c6 commit 9a4ae1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/bevy_winit/src/accessibility.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use winit::event_loop::ActiveEventLoop;
88

99
use accesskit::{
1010
ActionHandler, ActionRequest, ActivationHandler, DeactivationHandler, Node, NodeId, Role, Tree,
11-
TreeUpdate,
11+
TreeId, TreeUpdate,
1212
};
1313
use accesskit_winit::Adapter;
1414
use bevy_a11y::{
@@ -87,6 +87,7 @@ impl AccessKitState {
8787
TreeUpdate {
8888
nodes: vec![(accesskit_window_id, root)],
8989
tree: Some(tree),
90+
tree_id: TreeId::ROOT,
9091
focus: accesskit_window_id,
9192
}
9293
}
@@ -266,6 +267,7 @@ fn update_adapter(
266267
TreeUpdate {
267268
nodes: to_update,
268269
tree: None,
270+
tree_id: TreeId::ROOT,
269271
focus: NodeId(focus.0.unwrap_or(primary_window_id).to_bits()),
270272
}
271273
}

0 commit comments

Comments
 (0)