Skip to content

Commit

Permalink
primary_selection: don't drop the offer automatically
Browse files Browse the repository at this point in the history
When clients will try to access the offer on the primary selection
device, it'll automatically close it.
  • Loading branch information
kchibisov authored and wash2 committed Oct 8, 2023
1 parent 7951a66 commit 76f6484
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/primary_selection/offer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::data_device_manager::ReadPipe;

use super::PrimarySelectionManagerState;

/// RAII wrapper around the [`ZwpPrimarySelectionOfferV1`].
/// Wrapper around the [`ZwpPrimarySelectionOfferV1`].
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct PrimarySelectionOffer {
pub(crate) offer: ZwpPrimarySelectionOfferV1,
Expand Down Expand Up @@ -54,12 +54,6 @@ impl PrimarySelectionOffer {
}
}

impl Drop for PrimarySelectionOffer {
fn drop(&mut self) {
self.offer.destroy();
}
}

impl<State> Dispatch<ZwpPrimarySelectionOfferV1, PrimarySelectionOfferData, State>
for PrimarySelectionManagerState
where
Expand Down

0 comments on commit 76f6484

Please sign in to comment.