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

Dropping files doesn't work on Wayland #3100

Open
breard-r opened this issue Oct 25, 2024 · 0 comments
Open

Dropping files doesn't work on Wayland #3100

breard-r opened this issue Oct 25, 2024 · 0 comments

Comments

@breard-r
Copy link

Problem

When using a Wayland-based WM/DE (Hyprland, GNOME 3,…), dropping files (ondrop) always return an empty list of files.
The same machine, when using an X-based desktop environment (Cinnamon,…), doesn't have this issue.

Steps To Reproduce

Steps to reproduce the behavior:

  • Use any Wayland-based WM or DE
  • cargo r --example file_upload
  • Click on Choose Files and select a file: it works
  • Click on Clear Files
  • Drag and drop the same file on the drop area: it does not work

Expected behavior

Dragging and dropping a file in the drop area should have the same effect as selecting it using the Choose Files button.

Environment:

  • Dioxus version: v0.5.6
  • Rust version: stable (v1.82.0)
  • OS info: ArchLinux with Hyprland // Ubuntu 24.04.1 with GNOME 3
  • App platform: desktop

Notes

I noticed the idea to switch from tao to winit #2706

However, winit seems to have the same issue:
rust-windowing/winit#720
rust-windowing/winit#1881

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

No branches or pull requests

1 participant