ipc: always send wl_data_source.drop_performed after the physical drop
This commit is contained in:
parent
cf4c3bb4b5
commit
e665a18242
2 changed files with 3 additions and 3 deletions
|
|
@ -808,9 +808,6 @@ impl WlSeatGlobal {
|
||||||
dd.send_drop();
|
dd.send_drop();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if let Some(src) = &dnd.src {
|
|
||||||
src.on_drop();
|
|
||||||
}
|
|
||||||
// surface.client.flush();
|
// surface.client.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -421,6 +421,9 @@ impl PointerOwner for DndPointerOwner {
|
||||||
if button != self.button || state != KeyState::Released {
|
if button != self.button || state != KeyState::Released {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if let Some(src) = &self.dnd.src {
|
||||||
|
src.on_drop();
|
||||||
|
}
|
||||||
let should_drop = match &self.dnd.src {
|
let should_drop = match &self.dnd.src {
|
||||||
None => true,
|
None => true,
|
||||||
Some(s) => s.can_drop(),
|
Some(s) => s.can_drop(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue