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

DndEvent Drop not registered #244

Open
tfachmann opened this issue May 4, 2022 · 0 comments
Open

DndEvent Drop not registered #244

tfachmann opened this issue May 4, 2022 · 0 comments

Comments

@tfachmann
Copy link

I try to implement a drag and drop functionality for winit (compare tfachmann/winit@761d1bb).

In my initial tests I realized, that DndEvent::Drop is never emitted. DndEvent::{Enter, Motion, Leave} seem to be working fine. Here some output of the DndEvent while entering and dropping a file:

Enter { offer: Some(DataOffer { offer: wl_data_offer@4278190080, inner: Mutex { data: Inner { mime_types: ["text/uri-list", "DELETE"], actions: Copy | Move, current_action: None, serial: 0 }, poisoned: false, .. } }), serial: 53571, surface: wl_surface@21, x: 337.21484375, y: 694.51953125 }
Motion { offer: Some(DataOffer { offer: wl_data_offer@4278190080, inner: Mutex { data: Inner { mime_types: ["text/uri-list", "DELETE"], actions: Copy | Move, current_action: None, serial: 0 }, poisoned: false, .. } }), time: 21857971, x: 337.21484375, y: 694.51953125 }
Motion { offer: Some(DataOffer { offer: wl_data_offer@4278190080, inner: Mutex { data: Inner { mime_types: ["text/uri-list", "DELETE"], actions: Copy | Move, current_action: None, serial: 0 }, poisoned: false, .. } }), time: 21857980, x: 338.21484375, y: 694.51953125 }
[...]
Motion { offer: Some(DataOffer { offer: wl_data_offer@4278190080, inner: Mutex { data: Inner { mime_types: ["text/uri-list", "DELETE"], actions: Copy | Move, current_action: None, serial: 0 }, poisoned: false, .. } }), time: 21858069, x: 342.1875, y: 690.546875 }
Motion { offer: Some(DataOffer { offer: wl_data_offer@4278190080, inner: Mutex { data: Inner { mime_types: ["text/uri-list", "DELETE"], actions: Copy | Move, current_action: None, serial: 0 }, poisoned: false, .. } }), time: 21858076, x: 342.1875, y: 689.546875 }
Motion { offer: Some(DataOffer { offer: wl_data_offer@4278190080, inner: Mutex { data: Inner { mime_types: ["text/uri-list", "DELETE"], actions: Copy | Move, current_action: None, serial: 0 }, poisoned: false, .. } }), time: 21858089, x: 343.1875, y: 689.546875 }
Motion { offer: Some(DataOffer { offer: wl_data_offer@4278190080, inner: Mutex { data: Inner { mime_types: ["text/uri-list", "DELETE"], actions: Copy | Move, current_action: None, serial: 0 }, poisoned: false, .. } }), time: 21858093, x: 343.1875, y: 688.546875 }
Leave

Also: Is it possible to access the file path?

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