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

@ -334,6 +334,13 @@ fn check_grab_preconditions(
}
fn commit(surface: &WlSurface, state: &mut State) {
// TODO figure out which output the surface is on.
for output in state.common.spaces.outputs() {//.cloned().collect::<Vec<_>>().into_iter() {
state.backend.schedule_render(output);
// let space = state.common.spaces.active_space(output);
// get output for surface
}
let state = &mut state.common;
if let Some(toplevel) = state.pending_toplevels.iter().find(|toplevel| {