deps: Update smithay

This commit is contained in:
Victoria Brekenfeld 2024-11-18 19:48:17 +01:00 committed by Victoria Brekenfeld
parent dbb51e827d
commit d72bf54628
6 changed files with 37 additions and 18 deletions

View file

@ -36,7 +36,7 @@ use smithay::{
wayland_server::DisplayHandle,
},
utils::{DeviceFd, Transform},
wayland::dmabuf::DmabufFeedbackBuilder,
wayland::{dmabuf::DmabufFeedbackBuilder, presentation::Refresh},
};
use std::{borrow::BorrowMut, cell::RefCell, os::unix::io::OwnedFd, time::Duration};
use tracing::{debug, error, info, warn};
@ -234,8 +234,12 @@ impl Surface {
state.clock.now(),
self.output
.current_mode()
.map(|mode| Duration::from_secs_f64(1_000.0 / mode.refresh as f64))
.unwrap_or_default(),
.map(|mode| {
Refresh::Fixed(Duration::from_secs_f64(
1_000.0 / mode.refresh as f64,
))
})
.unwrap_or(Refresh::Unknown),
0,
wp_presentation_feedback::Kind::Vsync,
)