Update iced/libcosmic

This commit is contained in:
Ian Douglas Scott 2024-10-18 13:13:53 -07:00 committed by Ian Douglas Scott
parent e0c0f27f67
commit b70828e23f
17 changed files with 2019 additions and 1262 deletions

View file

@ -11,7 +11,9 @@ use cosmic::{
},
wayland_client::{Connection, Proxy, QueueHandle, WEnum},
},
iced_sctk::subsurface_widget::{SubsurfaceBuffer, SubsurfaceBufferRelease},
iced_winit::platform_specific::wayland::subsurface_widget::{
SubsurfaceBuffer, SubsurfaceBufferRelease,
},
};
use std::{
array,
@ -206,7 +208,7 @@ impl ScreencopyHandler for AppData {
width: front.size.0,
height: front.size.1,
#[cfg(feature = "no-subsurfaces")]
image: cosmic::widget::image::Handle::from_pixels(
image: cosmic::widget::image::Handle::from_rgba(
front.size.0,
front.size.1,
front.mmap.to_vec(),