Skip to content

Commit

Permalink
WIP workspace drag
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed Feb 10, 2025
1 parent 67b2a8a commit 7e26841
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/view/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ fn workspace_sidebar_entry<'a>(
};
*/
let item = workspace_item(workspace, output, is_drop_target);
/* TODO allow moving workspaces (needs compositor support)
let workspace_clone = workspace.clone(); // TODO avoid clone
let output_clone = output.clone();
let source = cosmic::widget::dnd_source(item)
Expand All @@ -233,12 +232,11 @@ fn workspace_sidebar_entry<'a>(
.on_finish(Some(Msg::SourceFinished))
.on_cancel(Some(Msg::SourceFinished))
.into();
*/
//crate::widgets::mouse_interaction_wrapper(
// mouse_interaction,
toplevel_dnd_destination(
DropTarget::WorkspaceSidebarEntry(workspace.handle.clone(), output.clone()),
item,
source,
)
}

Expand Down

0 comments on commit 7e26841

Please sign in to comment.