Merge pull request #216 from mahkoh/jorth/fix-chromium-dnd
wayland: send drop event unconditionally on drop
This commit is contained in:
commit
f94f199ab1
1 changed files with 2 additions and 2 deletions
|
|
@ -464,6 +464,8 @@ impl PointerOwner for DndPointerOwner {
|
||||||
if button != self.button || state != KeyState::Released {
|
if button != self.button || state != KeyState::Released {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
let target = self.target.get();
|
||||||
|
target.node_on_dnd_drop(&self.dnd);
|
||||||
if let Some(src) = &self.dnd.src {
|
if let Some(src) = &self.dnd.src {
|
||||||
src.on_drop(seat);
|
src.on_drop(seat);
|
||||||
}
|
}
|
||||||
|
|
@ -471,9 +473,7 @@ impl PointerOwner for DndPointerOwner {
|
||||||
None => true,
|
None => true,
|
||||||
Some(s) => s.can_drop(),
|
Some(s) => s.can_drop(),
|
||||||
};
|
};
|
||||||
let target = self.target.get();
|
|
||||||
if should_drop {
|
if should_drop {
|
||||||
self.target.get().node_on_dnd_drop(&self.dnd);
|
|
||||||
*seat.dropped_dnd.borrow_mut() = Some(DroppedDnd {
|
*seat.dropped_dnd.borrow_mut() = Some(DroppedDnd {
|
||||||
dnd: self.dnd.clone(),
|
dnd: self.dnd.clone(),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue