chore: Update smithay

This commit is contained in:
Victoria Brekenfeld 2023-07-12 18:54:53 +02:00
parent 4ee5aaf741
commit a308997fd4
17 changed files with 64 additions and 5 deletions

View file

@ -56,9 +56,14 @@ use smithay::{
},
};
#[derive(Debug)]
pub struct IcedElement<P: Program + Send + 'static>(Arc<Mutex<IcedElementInternal<P>>>);
impl<P: Program + Send + 'static> fmt::Debug for IcedElement<P> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Debug::fmt(&self.0, f)
}
}
// SAFETY: We cannot really be sure about `iced_native::program::State` sadly,
// but the rest should be fine.
unsafe impl<P: Program + Send + 'static> Send for IcedElementInternal<P> {}