1
0
Fork 0
forked from wry/wry

ipc: always send wl_data_source.drop_performed after the physical drop

This commit is contained in:
Julian Orth 2024-03-02 17:05:39 +01:00
parent cf4c3bb4b5
commit e665a18242
2 changed files with 3 additions and 3 deletions

View file

@ -808,9 +808,6 @@ impl WlSeatGlobal {
dd.send_drop();
})
}
if let Some(src) = &dnd.src {
src.on_drop();
}
// surface.client.flush();
}

View file

@ -421,6 +421,9 @@ impl PointerOwner for DndPointerOwner {
if button != self.button || state != KeyState::Released {
return;
}
if let Some(src) = &self.dnd.src {
src.on_drop();
}
let should_drop = match &self.dnd.src {
None => true,
Some(s) => s.can_drop(),