From 95cbe2a636e89b4ccd24baa8420e02a519658efd Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 3 Sep 2023 15:15:55 +0400 Subject: Send scanout feedbacks to surfaces --- src/backend/winit.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/backend/winit.rs') diff --git a/src/backend/winit.rs b/src/backend/winit.rs index 767bf7f4..dc2e8bc6 100644 --- a/src/backend/winit.rs +++ b/src/backend/winit.rs @@ -11,6 +11,7 @@ use smithay::reexports::wayland_protocols::wp::presentation_time::server::wp_pre use smithay::reexports::winit::dpi::LogicalSize; use smithay::reexports::winit::window::WindowBuilder; use smithay::utils::Transform; +use smithay::wayland::dmabuf::DmabufFeedback; use crate::niri::OutputRenderElements; use crate::utils::get_monotonic_time; @@ -129,7 +130,7 @@ impl Winit { niri: &mut Niri, output: &Output, elements: &[OutputRenderElements], - ) { + ) -> Option<&DmabufFeedback> { let _span = tracy_client::span!("Winit::render"); self.backend.bind().unwrap(); @@ -152,6 +153,8 @@ impl Winit { self.backend.window().request_redraw(); } + + None } pub fn toggle_debug_tint(&mut self) { -- cgit