fix(dnd): leave event handlers should expect None as the drag Id

This commit is contained in:
Ashley Wulber 2025-05-20 22:28:57 -04:00 committed by Michael Murphy
parent a46483f161
commit ce56237ab9
3 changed files with 17 additions and 7 deletions

View file

@ -1995,10 +1995,12 @@ pub fn update<'a, Message: Clone + 'static>(
return event::Status::Ignored;
}
#[cfg(feature = "wayland")]
Event::Dnd(DndEvent::Offer(id, OfferEvent::LeaveDestination)) if Some(dnd_id) != id => {}
#[cfg(feature = "wayland")]
Event::Dnd(DndEvent::Offer(
rectangle,
OfferEvent::Leave | OfferEvent::LeaveDestination,
)) if rectangle == Some(dnd_id) => {
)) => {
cold();
let state = state();
// ASHLEY TODO we should be able to reset but for now we don't if we are handling a