deps: Update smithay
This commit is contained in:
parent
dbb51e827d
commit
d72bf54628
6 changed files with 37 additions and 18 deletions
|
|
@ -29,7 +29,7 @@ use smithay::{
|
|||
winit::platform::pump_events::PumpStatus,
|
||||
},
|
||||
utils::Transform,
|
||||
wayland::dmabuf::DmabufFeedbackBuilder,
|
||||
wayland::{dmabuf::DmabufFeedbackBuilder, presentation::Refresh},
|
||||
};
|
||||
use std::{borrow::BorrowMut, cell::RefCell, time::Duration};
|
||||
use tracing::{error, info, warn};
|
||||
|
|
@ -84,8 +84,12 @@ impl WinitState {
|
|||
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,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue