diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-14 09:33:42 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-14 09:33:42 +0400 |
| commit | 092095ead005ff073344b723f00b08a5b845f186 (patch) | |
| tree | ccd0522615a0ef80ea5905193518c9689c617e98 /src/niri.rs | |
| parent | ef11975ec53005b10786e2bfe6f31ba88ff81a34 (diff) | |
| download | niri-092095ead005ff073344b723f00b08a5b845f186.tar.gz niri-092095ead005ff073344b723f00b08a5b845f186.tar.bz2 niri-092095ead005ff073344b723f00b08a5b845f186.zip | |
Add debug flag to wait for frame completion
Diffstat (limited to 'src/niri.rs')
| -rw-r--r-- | src/niri.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/niri.rs b/src/niri.rs index 79165f93..65a07d8f 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -690,7 +690,9 @@ impl Niri { // Timer::immediate() adds a millisecond of delay for some reason. // This should be fixed in calloop v0.11: https://github.com/Smithay/calloop/issues/142 let idle = self.event_loop.insert_idle(move |data| { - data.state.niri.redraw(&mut data.state.backend, &output); + data.state + .niri + .redraw(&data.state.config, &mut data.state.backend, &output); }); state.queued_redraw = Some(idle); } @@ -835,7 +837,7 @@ impl Niri { elements } - fn redraw(&mut self, backend: &mut Backend, output: &Output) { + fn redraw(&mut self, config: &Config, backend: &mut Backend, output: &Output) { let _span = tracy_client::span!("Niri::redraw"); let state = self.output_state.get_mut(output).unwrap(); @@ -852,7 +854,7 @@ impl Niri { let elements = self.render(backend.renderer(), output); // Hand it over to the backend. - let dmabuf_feedback = backend.render(self, output, &elements); + let dmabuf_feedback = backend.render(config, self, output, &elements); // Send the dmabuf feedbacks. if let Some(feedback) = dmabuf_feedback { |
