Skip to content

wayland: register drag & drop events#4009

Draft
PeakKS wants to merge 1 commit intorust-windowing:masterfrom
PeakKS:wayland-dnd
Draft

wayland: register drag & drop events#4009
PeakKS wants to merge 1 commit intorust-windowing:masterfrom
PeakKS:wayland-dnd

Conversation

@PeakKS
Copy link

@PeakKS PeakKS commented Nov 26, 2024

I tried implementing drag & drop on Wayland, though I don't think it is possible with the current PathBuf based API. The smithay client toolkit provides only a readpipe to get the file content from, and afaict there is no way to get the path from it.

Tried a little harder and got it to work, still work to be done e.g. handling multiple file selections.

Related: #1881 #1550

  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

@kchibisov
Copy link
Member

See #2429

it all should still apply.

@PeakKS PeakKS force-pushed the wayland-dnd branch 4 times, most recently from ea02bb2 to 2d5072e Compare November 27, 2024 21:21
@PeakKS
Copy link
Author

PeakKS commented Nov 27, 2024

I think the functionality is correct now.

@madsmtm madsmtm added the DS - wayland Affects the Wayland backend, or generally free Unix platforms label Dec 3, 2024
@zinifier zinifier mentioned this pull request Jan 2, 2025
@zinifier
Copy link

zinifier commented Jan 2, 2025

I haven't made deep testing but in a simple application based on libcosmic with this patch applied, dropping a file on the window works on wayland too! Thanks!

I did not review the code before applying.

@markcda
Copy link

markcda commented Jul 31, 2025

Guys, any ping on this?

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

Labels

DS - wayland Affects the Wayland backend, or generally free Unix platforms

Development

Successfully merging this pull request may close these issues.

5 participants