Skip to content

wayland: register drag & drop events - #4009

Closed
PeakKS wants to merge 1 commit into
rust-windowing:masterfrom
PeakKS:wayland-dnd
Closed

PeakKS wants to merge 1 commit into
rust-windowing:masterfrom
PeakKS:wayland-dnd

Conversation

@PeakKS

@PeakKS PeakKS commented Nov 26, 2024 •

Copy link
Copy Markdown

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
Copy Markdown
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

PeakKS commented Nov 27, 2024

Copy link
Copy Markdown
Author

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

zinifier commented Jan 2, 2025 •

Copy link
Copy Markdown

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

markcda commented Jul 31, 2025

Copy link
Copy Markdown

Guys, any ping on this?

@Lolle2000la

Copy link
Copy Markdown

This PR has been marked as a draft for quite some time. Is the issue still up for grabs/can the PR be adapted into a new one finishing this?

@ogoffart

Copy link
Copy Markdown
Contributor

superseded by #4571

@ogoffart ogoffart closed this Jul 24, 2026
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.

7 participants