Skip to content

Commit

Permalink
ipc: always send wl_data_source.drop_performed after the physical drop
Browse files Browse the repository at this point in the history
  • Loading branch information
mahkoh committed Mar 2, 2024
1 parent b6267f1 commit 9ef089e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ifs/wl_seat/event_handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -808,9 +808,6 @@ impl WlSeatGlobal {
dd.send_drop();
})
}
if let Some(src) = &dnd.src {
src.on_drop();
}
// surface.client.flush();
}

Expand Down
3 changes: 3 additions & 0 deletions src/ifs/wl_seat/pointer_owner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 9ef089e

Please sign in to comment.