-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
File drag and drop not working under wayland #1563
Comments
Do you get a |
How do I best test for this? I basically use the code provided here (under |
Ok, I built it manually. This are prints of the
and this under Xwayland:
So indeed, no |
Then that sounds like a bug in |
Thanks for the clarification that it's the responsibility of winit. There is an open issue in for exactly that: rust-windowing/winit#1881 |
I think this is relevant line 68 winit>src>lib.rs pub fn new_with_wayland_display(wayland_display: Option<*mut c_void>) -> Self {
Self {
start_time: instant::Instant::now(),
egui_input: Default::default(),
pointer_pos_in_points: None,
any_pointer_button_down: false,
current_cursor_icon: egui::CursorIcon::Default,
current_pixels_per_point: 1.0,
clipboard: clipboard::Clipboard::new(wayland_display),
screen_reader: screen_reader::ScreenReader::default(),
simulate_touch_screen: false,
pointer_touch_id: None,
} |
Describe the bug
Under wayland, File drag and drop is unrecognized. In particular, the following two interfaces are always empty:
To Reproduce
Use the
egui::DroppedFile
interface under wayland.Expected behavior
Under wayland,
raw.hovered_files
andraw.dropped_files
should be recognized and processed.Under the web, the events are recognized.
Under Xwayland (via
env -u WAYLAND_DISPLAY cargo run
) the events are also recognizedDesktop (please complete the following information):
5.17.5-arch1-1
sway version 1.7
egui = "0.18.0" && eframe = "0.18.0"
Additional context
I tried forcing
with no luck.
The text was updated successfully, but these errors were encountered: