From 889499b64d644d18549430f4c76e16705a989818 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Tue, 20 Aug 2024 11:55:08 -0700 Subject: [PATCH] Add `single-pixel-buffer-v1` --- src/state.rs | 2 ++ src/wayland/handlers/mod.rs | 1 + src/wayland/handlers/single_pixel_buffer.rs | 6 ++++++ 3 files changed, 9 insertions(+) create mode 100644 src/wayland/handlers/single_pixel_buffer.rs diff --git a/src/state.rs b/src/state.rs index faf7fcd7..0776d71e 100644 --- a/src/state.rs +++ b/src/state.rs @@ -89,6 +89,7 @@ use smithay::{ xdg::{decoration::XdgDecorationState, XdgShellState}, }, shm::ShmState, + single_pixel_buffer::SinglePixelBufferState, tablet_manager::TabletManagerState, text_input::TextInputManagerState, viewporter::ViewporterState, @@ -512,6 +513,7 @@ impl State { TextInputManagerState::new::(&dh); VirtualKeyboardManagerState::new::(&dh, client_is_privileged); AlphaModifierState::new::(&dh); + SinglePixelBufferState::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/mod.rs b/src/wayland/handlers/mod.rs index e8ff0c59..b25ec2bb 100644 --- a/src/wayland/handlers/mod.rs +++ b/src/wayland/handlers/mod.rs @@ -29,6 +29,7 @@ pub mod security_context; pub mod selection; pub mod session_lock; pub mod shm; +pub mod single_pixel_buffer; pub mod tablet_manager; pub mod text_input; pub mod toplevel_info; diff --git a/src/wayland/handlers/single_pixel_buffer.rs b/src/wayland/handlers/single_pixel_buffer.rs new file mode 100644 index 00000000..b010828b --- /dev/null +++ b/src/wayland/handlers/single_pixel_buffer.rs @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-3.0-only + +use crate::state::State; +use smithay::delegate_single_pixel_buffer; + +delegate_single_pixel_buffer!(State);