dnd: Keep track of drop target
Now just need a protocol to move the toplevel to a workspace.
This commit is contained in:
parent
f2c77d035c
commit
5550f41814
2 changed files with 20 additions and 4 deletions
|
|
@ -101,7 +101,9 @@ fn workspace_sidebar_entry<'a>(
|
|||
.into()
|
||||
*/
|
||||
iced::widget::dnd_listener(workspace_item(workspace, output))
|
||||
.on_enter(Msg::DndWorkspaceEnter)
|
||||
.on_enter(|actions, mime, pos| {
|
||||
Msg::DndWorkspaceEnter(workspace.handle.clone(), output.clone(), actions, mime, pos)
|
||||
})
|
||||
.on_exit(Msg::DndWorkspaceLeave)
|
||||
.on_drop(Msg::DndWorkspaceDrop)
|
||||
.on_data(Msg::DndWorkspaceData)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue