Move drag-and-drop related types to a dnd module

This commit is contained in:
Ian Douglas Scott 2025-01-24 14:28:42 -08:00
parent efdfaed6c8
commit 3dc82789f5
3 changed files with 102 additions and 92 deletions

View file

@ -1,11 +1,8 @@
use std::collections::HashMap;
use cctk::{
cosmic_protocols::toplevel_info::v1::client::zcosmic_toplevel_handle_v1,
wayland_client::protocol::wl_output,
};
use cosmic::{
cctk,
cctk::{
cosmic_protocols::toplevel_info::v1::client::zcosmic_toplevel_handle_v1,
wayland_client::protocol::wl_output,
},
iced::{
self,
advanced::layout::flex::Axis,
@ -18,10 +15,12 @@ use cosmic::{
};
use cosmic_bg_config::Source;
use cosmic_comp_config::workspace::WorkspaceLayout;
use std::collections::HashMap;
use crate::{
backend::{self, CaptureImage},
App, DragSurface, DragToplevel, DropTarget, LayerSurface, Msg, Toplevel, Workspace,
dnd::{DragSurface, DragToplevel, DropTarget},
App, LayerSurface, Msg, Toplevel, Workspace,
};
fn toplevel_dnd_destination<'a>(