Enable wlr_data_control protocol (#101)
This commit is contained in:
parent
d051d14197
commit
72ee1c4d5a
4 changed files with 28 additions and 1 deletions
15
src/wayland/handlers/data_control.rs
Normal file
15
src/wayland/handlers/data_control.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// 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(&self) -> &DataControlState {
|
||||
self.common.data_control_state.as_ref().unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
delegate_data_control!(State);
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
pub mod buffer;
|
||||
pub mod compositor;
|
||||
pub mod data_control;
|
||||
pub mod data_device;
|
||||
pub mod decoration;
|
||||
pub mod dmabuf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue