Add alpha-modifier-v1 protocol

This commit is contained in:
Ian Douglas Scott 2024-06-06 14:39:55 -07:00 committed by Victoria Brekenfeld
parent b5dcec5215
commit 036ca84829
5 changed files with 11 additions and 2 deletions

View file

@ -63,6 +63,7 @@ use smithay::{
},
utils::{Clock, IsAlive, Monotonic},
wayland::{
alpha_modifier::AlphaModifierState,
compositor::{CompositorClientState, CompositorState},
dmabuf::{DmabufFeedback, DmabufGlobal, DmabufState},
fractional_scale::{with_fractional_scale, FractionalScaleManagerState},
@ -437,6 +438,7 @@ impl State {
InputMethodManagerState::new::<Self, _>(&dh, client_is_privileged);
TextInputManagerState::new::<Self>(&dh);
VirtualKeyboardManagerState::new::<State, _>(&dh, client_is_privileged);
AlphaModifierState::new::<Self>(&dh);
let idle_notifier_state = IdleNotifierState::<Self>::new(&dh, handle.clone());
let idle_inhibit_manager_state = IdleInhibitManagerState::new::<State>(&dh);

View file

@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
use crate::state::State;
use smithay::delegate_alpha_modifier;
delegate_alpha_modifier!(State);

View file

@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
pub mod alpha_modifier;
pub mod buffer;
pub mod compositor;
pub mod data_control;