loop: drive render loop by client commits + input
This commit is contained in:
parent
ca32139131
commit
56e72b4fef
5 changed files with 50 additions and 16 deletions
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue