wayland: primary_selection support

This commit is contained in:
Victoria Brekenfeld 2022-07-15 14:22:02 +02:00
parent 7bf7aea06d
commit a85389ba2e
6 changed files with 70 additions and 30 deletions

View file

@ -7,6 +7,7 @@ pub mod dmabuf;
pub mod layer_shell;
pub mod output;
pub mod output_configuration;
pub mod primary_selection;
pub mod seat;
pub mod shm;
pub mod toplevel_info;

View file

@ -0,0 +1,15 @@
// SPDX-License-Identifier: GPL-3.0-only
use crate::state::State;
use smithay::{
delegate_primary_selection,
wayland::primary_selection::{PrimarySelectionHandler, PrimarySelectionState},
};
impl PrimarySelectionHandler for State {
fn primary_selection_state(&self) -> &PrimarySelectionState {
&self.common.primary_selection_state
}
}
delegate_primary_selection!(State);