Some users have complained about not supporting clipboard managers. But this was possible, but hidden under the `COSMIC_DATA_CONTROL_ENABLED` env var. Since the security context protocol exists now to provide a way to not expose a protocol like this to sandboxed clients, it should be safe to expose this now.
15 lines
379 B
Rust
15 lines
379 B
Rust
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
use crate::state::State;
|
|
use smithay::{
|
|
delegate_data_control,
|
|
wayland::selection::wlr_data_control::{DataControlHandler, DataControlState},
|
|
};
|
|
|
|
impl DataControlHandler for State {
|
|
fn data_control_state(&mut self) -> &mut DataControlState {
|
|
&mut self.common.data_control_state
|
|
}
|
|
}
|
|
|
|
delegate_data_control!(State);
|