Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[x11] Fix drag & drop receiving incorrect file with some file managers #121

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

56789a1987
Copy link
Contributor

Fix aseprite/aseprite#3737

The issue is reproducible on KDE x11, Dolphin file manager. Drag & Drop keeps opening the same file.
Passing the time stamp from the XdndDrop event to XConvertSelection fixes the issue.

This can be useful as reusing the same window to open documents is still not supported on Linux.

I agree that my contributions are licensed under the MIT License.

On Dolphin file manager, dropping file always returns the first file.
@dacap dacap self-assigned this Dec 18, 2024
@dacap
Copy link
Member

dacap commented Dec 18, 2024

Thanks for this fix @56789a1987, checking the XDND specs you are right:

https://www.freedesktop.org/wiki/Specifications/XDND/#xdnddrop

I'll merge this.

@dacap dacap merged commit f241165 into aseprite:main Dec 18, 2024
1 check passed
@56789a1987 56789a1987 deleted the x11-dnd-fix branch December 19, 2024 07:35
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.

Dragging & dropping doesn't function as intended
2 participants