Closed fabriziosestito closed 1 year ago
This will allow to use wait_for_event in a future such as:
wait_for_event
tokio::spawn(async move { loop { let event = conn.wait_for_event().unwrap(); match event { xcb::Event::X(event) => { sender.send(event).await.unwrap(); } xcb::Event::Unknown(_) => {} }; } });
This is actually a bug. Send and Sync is implemented for all event types except UnknownEvent.
Send
Sync
UnknownEvent
This will allow to use
wait_for_event
in a future such as: