Update libcosmic/iced

This commit is contained in:
Ian Douglas Scott 2024-04-30 16:25:50 -07:00
parent d759e1d7c2
commit 249c62ee0a
3 changed files with 114 additions and 102 deletions

View file

@ -533,7 +533,7 @@ impl Application for App {
vec![mime_type.to_string()],
DndAction::Move,
*parent_id,
Some(DndIcon::Custom(id)),
Some((DndIcon::Custom(id), iced::Vector::ZERO)),
Box::new(WlDndId { mime_type }),
);
}

View file

@ -291,7 +291,7 @@ fn toplevel_previews_entry<'a>(
// shown.
let preview = crate::widgets::visibility_wrapper(toplevel_preview(toplevel), !is_being_dragged);
iced::widget::dnd_source(preview)
.on_drag(|size| {
.on_drag(|size, _offset| {
Msg::StartDrag(
size,
DragSurface::Toplevel {