Add xdg-foreign-unstable-v2 protocol
This commit is contained in:
parent
1342c000ab
commit
ed64e26faf
3 changed files with 17 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ pub mod viewporter;
|
|||
pub mod virtual_keyboard;
|
||||
pub mod workspace;
|
||||
pub mod xdg_activation;
|
||||
pub mod xdg_foreign;
|
||||
pub mod xdg_shell;
|
||||
pub mod xwayland_keyboard_grab;
|
||||
pub mod xwayland_shell;
|
||||
|
|
|
|||
12
src/wayland/handlers/xdg_foreign.rs
Normal file
12
src/wayland/handlers/xdg_foreign.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use smithay::{delegate_xdg_foreign, wayland::xdg_foreign::{XdgForeignHandler, XdgForeignState}};
|
||||
use crate::state::State;
|
||||
|
||||
impl XdgForeignHandler for State {
|
||||
fn xdg_foreign_state(&mut self) -> &mut XdgForeignState {
|
||||
&mut self.common.xdg_foreign_state
|
||||
}
|
||||
}
|
||||
|
||||
delegate_xdg_foreign!(State);
|
||||
Loading…
Add table
Add a link
Reference in a new issue