autocommit 2022-03-30 03:00:46 CEST
This commit is contained in:
parent
9842264fad
commit
28c9b46400
40 changed files with 1212 additions and 175 deletions
|
|
@ -607,14 +607,19 @@ impl XBackendData {
|
|||
Some(o) => o,
|
||||
_ => return Ok(()),
|
||||
};
|
||||
let mut matched_any = false;
|
||||
for image in &output.images {
|
||||
if image.last_serial.get() == event.serial {
|
||||
matched_any = true;
|
||||
image.idle.set(true);
|
||||
if image.render_on_idle.replace(false) {
|
||||
self.schedule_present(&output);
|
||||
}
|
||||
}
|
||||
}
|
||||
if !matched_any {
|
||||
fatal!("idle event did not match any images {:#?}", event);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue