Skip to content

Jeremypw/dnd/fallback suggested action#2771

Draft
jeremypw wants to merge 7 commits intomainfrom
jeremypw/dnd/fallback-suggested-action
Draft

Jeremypw/dnd/fallback suggested action#2771
jeremypw wants to merge 7 commits intomainfrom
jeremypw/dnd/fallback-suggested-action

Conversation

@jeremypw
Copy link
Contributor

@jeremypw jeremypw commented Mar 11, 2026

Fixes #2658 - hopefully.

The first four commits are basically cleanup and can be ignored or split out into a separate PR.

The final commit reworks and slightly simplifies deciding whether a file can be dropped and now ignores the selected action from DragContext.get_selected_action () as it seems that this is now unreliable on Wayland and may return 'null' or some other value which is not a valid DragAction.

As a consequence of this, dropping a file onto its parent now results in a menu allowing choice between COPY and LINK actions. This is parallel to the paste options on the context menu when using the keyboard. If desired this can be easily reverted to defaulting to refusing the drop.

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doing a drag-drop operation in reverse fails Drag and drop files into a folder doesn't always work

1 participant