Add xdg-foreign-unstable-v2 protocol

This commit is contained in:
Ian Douglas Scott 2024-08-29 17:30:50 -07:00 committed by Victoria Brekenfeld
parent 1342c000ab
commit ed64e26faf
3 changed files with 17 additions and 0 deletions

View file

@ -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;

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