loop: drive render loop by client commits + input

This commit is contained in:
Victoria Brekenfeld 2022-01-28 18:54:25 +01:00
parent ca32139131
commit 56e72b4fef
5 changed files with 50 additions and 16 deletions

View file

@ -27,7 +27,7 @@ fn main() -> Result<()> {
// init wayland
let display = init_wayland_display(&mut event_loop)?;
// init state
let mut state = state::State::new(display);
let mut state = state::State::new(display, event_loop.handle());
// init backend
backend::init_backend_auto(&mut event_loop, &mut state)?;