main loop dispatch without blocking
This commit is contained in:
parent
288014339a
commit
147574b06b
1 changed files with 4 additions and 2 deletions
|
@ -122,9 +122,11 @@ fn main() -> Result<()> {
|
|||
// layer_surface.set_margin(10, 10, 10, 10);
|
||||
// surface.commit();
|
||||
|
||||
queue.flush()?;
|
||||
|
||||
loop {
|
||||
debug!("dispatched!");
|
||||
queue.blocking_dispatch(&mut state)?;
|
||||
debug!("loop iteration!");
|
||||
poll_fn(|cx| queue.poll_dispatch_pending(cx, &mut state)).await?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue