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);
|
// layer_surface.set_margin(10, 10, 10, 10);
|
||||||
// surface.commit();
|
// surface.commit();
|
||||||
|
|
||||||
|
queue.flush()?;
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
debug!("dispatched!");
|
debug!("loop iteration!");
|
||||||
queue.blocking_dispatch(&mut state)?;
|
poll_fn(|cx| queue.poll_dispatch_pending(cx, &mut state)).await?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue