fix: a11y_ready state for sctk surfaces

This commit is contained in:
Ashley Wulber 2026-04-01 17:11:20 -04:00 committed by Ashley Wulber
parent 04c273a79b
commit e4da5002ae
3 changed files with 25 additions and 6 deletions

View file

@ -1020,7 +1020,7 @@ impl SctkEvent {
theme::Mode::None, // TODO do we really need to track the system theme here?
0,
);
window.state.ready = false;
window.state.set_ready(false);
let logical_size = window.logical_size();
let mut ui = crate::build_user_interface(
@ -1097,7 +1097,7 @@ impl SctkEvent {
.map(|v| (id.inner(), v))
})
{
w.state.ready = true;
w.state.set_ready(true);
if first {
control_sender
.send(Control::Winit(