diff --git a/Cargo.lock b/Cargo.lock index 88e0c620..b4761bd8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index cd9efd98..0c953367 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"} diff --git a/src/state.rs b/src/state.rs index 0a6321cf..2d4ac8e4 100644 --- a/src/state.rs +++ b/src/state.rs @@ -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::(&dh, client_is_privileged); TextInputManagerState::new::(&dh); VirtualKeyboardManagerState::new::(&dh, client_is_privileged); + AlphaModifierState::new::(&dh); let idle_notifier_state = IdleNotifierState::::new(&dh, handle.clone()); let idle_inhibit_manager_state = IdleInhibitManagerState::new::(&dh); diff --git a/src/wayland/handlers/alpha_modifier.rs b/src/wayland/handlers/alpha_modifier.rs new file mode 100644 index 00000000..bcc5eb92 --- /dev/null +++ b/src/wayland/handlers/alpha_modifier.rs @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-only + +use crate::state::State; +use smithay::delegate_alpha_modifier; + +delegate_alpha_modifier!(State); diff --git a/src/wayland/handlers/mod.rs b/src/wayland/handlers/mod.rs index 56971a96..e8ff0c59 100644 --- a/src/wayland/handlers/mod.rs +++ b/src/wayland/handlers/mod.rs @@ -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;