fix: avoid deadlock in context menu rendering

This commit is contained in:
Hojjat 2026-05-21 17:38:04 -06:00 committed by Ashley Wulber
parent a7d71d9ace
commit 0094b347d4

View file

@ -538,7 +538,6 @@ impl SctkEventLoop {
wake_up = true;
_ = s.frame(&state.state.queue_handle, s.clone());
_ = state.state.frame_status.remove(&id);
_ = state.state.events_sender.unbounded_send(
Control::Winit(
winit::window::WindowId::from_raw(
@ -547,6 +546,7 @@ impl SctkEventLoop {
winit::event::WindowEvent::RedrawRequested,
),
);
_ = state.state.frame_status.insert(id, state::FrameStatus::Received);
}
if wake_up {