Use updated screencopy abstraction

This commit is contained in:
Ian Douglas Scott 2025-01-30 15:53:50 -08:00 committed by Ian Douglas Scott
parent a3be974f81
commit 4dc6f8b99f
5 changed files with 127 additions and 265 deletions

View file

@ -269,10 +269,11 @@ impl DockItem {
let icon_button = if dnd_source_enabled && interaction_enabled {
dnd_source(icon_button)
.window(window_id)
.drag_icon(move || {
.drag_icon(move |_| {
(
cosmic_icon.clone().into(),
iced::core::widget::tree::State::None,
iced::Vector::ZERO,
)
})
.drag_threshold(16.)