wayland: primary_selection support
This commit is contained in:
parent
7bf7aea06d
commit
a85389ba2e
6 changed files with 70 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
15
src/wayland/handlers/primary_selection.rs
Normal file
15
src/wayland/handlers/primary_selection.rs
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue