Add single-pixel-buffer-v1

This commit is contained in:
Ian Douglas Scott 2024-08-20 11:55:08 -07:00 committed by Victoria Brekenfeld
parent c48dc1107f
commit 889499b64d
3 changed files with 9 additions and 0 deletions

View file

@ -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::<Self>(&dh);
VirtualKeyboardManagerState::new::<State, _>(&dh, client_is_privileged);
AlphaModifierState::new::<Self>(&dh);
SinglePixelBufferState::new::<Self>(&dh);
let idle_notifier_state = IdleNotifierState::<Self>::new(&dh, handle.clone());
let idle_inhibit_manager_state = IdleInhibitManagerState::new::<State>(&dh);

View file

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

View file

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