Enable wlr_data_control protocol (#101)

This commit is contained in:
xDarksome 2023-11-14 00:47:43 +04:00 committed by GitHub
parent d051d14197
commit 72ee1c4d5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 1 deletions

View 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);

View file

@ -2,6 +2,7 @@
pub mod buffer;
pub mod compositor;
pub mod data_control;
pub mod data_device;
pub mod decoration;
pub mod dmabuf;