cosmic-comp/src/wayland/handlers/primary_selection.rs

16 lines
420 B
Rust
Raw Normal View History

2022-07-15 14:22:02 +02:00
// SPDX-License-Identifier: GPL-3.0-only
use crate::state::State;
use smithay::{
delegate_primary_selection,
wayland::selection::primary_selection::{PrimarySelectionHandler, PrimarySelectionState},
2022-07-15 14:22:02 +02:00
};
2022-07-15 14:22:02 +02:00
impl PrimarySelectionHandler for State {
2025-07-16 21:12:02 +02:00
fn primary_selection_state(&mut self) -> &mut PrimarySelectionState {
&mut self.common.primary_selection_state
2022-07-15 14:22:02 +02:00
}
}
delegate_primary_selection!(State);