Skip to content

Commit

Permalink
chore(data-device): document that the offer may need to be manually d…
Browse files Browse the repository at this point in the history
…estroyed after leave
  • Loading branch information
wash2 committed Sep 22, 2023
1 parent d0812fd commit 1035e45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data_device_manager/data_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ pub trait DataDeviceHandler: Sized {
fn enter(&mut self, conn: &Connection, qh: &QueueHandle<Self>, data_device: &WlDataDevice);

/// The drag and drop pointer has left the surface and the session ends.
/// The offer will be destroyed.
/// The offer will be destroyed unless it was previously dropped.
/// In the case of a dropped offer, the client must destroy it manually after it is finished.
fn leave(&mut self, conn: &Connection, qh: &QueueHandle<Self>, data_device: &WlDataDevice);

/// Drag and Drop motion.
Expand Down

0 comments on commit 1035e45

Please sign in to comment.