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

2
Cargo.lock generated
View file

@ -4581,7 +4581,7 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
[[package]]
name = "smithay"
version = "0.3.0"
source = "git+https://github.com/smithay//smithay?rev=96af9cb#96af9cb50f686e8c39a6638de3d4ef6b07a239ae"
source = "git+https://github.com/smithay//smithay?rev=24e36e9#24e36e97a1844d575a1586d3cddcc94d96c2044d"
dependencies = [
"appendlist",
"ash",

View file

@ -118,4 +118,4 @@ inherits = "release"
lto = "fat"
[patch."https://github.com/Smithay/smithay.git"]
smithay = {git = "https://github.com/smithay//smithay", rev = "96af9cb"}
smithay = {git = "https://github.com/smithay//smithay", rev = "24e36e9"}

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;