kms: Limit frame-callbacks to one per refresh

This commit is contained in:
Victoria Brekenfeld 2024-06-10 20:54:13 +02:00 committed by Victoria Brekenfeld
parent 92f3dbce01
commit 31ff17a323
4 changed files with 83 additions and 38 deletions

View file

@ -221,7 +221,7 @@ impl Surface {
self.surface
.submit()
.with_context(|| "Failed to submit buffer for display")?;
state.send_frames(&self.output);
state.send_frames(&self.output, None);
state.update_primary_output(&self.output, &states);
state.send_dmabuf_feedback(&self.output, &states, |_| None);
if damage.is_some() {