iced icon indicating copy to clipboard operation
iced copied to clipboard

`window::Event::FileDropped` & `window::Event::FileHovered` are not working on Wayland

Open eminfedar opened this issue 1 year ago • 1 comments

Is your issue REALLY a bug?

  • [X] My issue is indeed a bug!
  • [X] I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • [X] I have searched the existing issues.

Is this issue related to iced?

  • [X] My hardware is compatible and my graphics drivers are up-to-date.

What happened?

File Drag & Drop events of window work on X11 but not on Wayland.

OS: Fedora 40 GNU/Linux DE: Gnome 46 Version: iced 0.12

What is the expected behavior?

File drag & drop should work on Wayland too. window::Event::FileDropped & window::Event::FileHovered should be generated.

Version

crates.io release

Operating System

Linux

Do you have any log output?

No response

eminfedar avatar Aug 05 '24 11:08 eminfedar

It's unimplemented in winit: https://github.com/rust-windowing/winit/issues/1881 (so it's blocked on it)

It should have Platform-specific notes though (both in winit and iced)

bbb651 avatar Sep 29 '24 13:09 bbb651

It's still unimplemented upstream but i tried applying https://github.com/rust-windowing/winit/pull/4009 and it seemed to work for me! I don't know if iced maintainers feel like applying patches on top of upstream, or if they are winit contributors and can help that PR get reviewed, but i thought i'd let you know :)

zinifier avatar Jan 02 '25 00:01 zinifier