diff --git a/src/handlers.rs b/src/handlers.rs index 897494f..6c41cca 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -19,8 +19,9 @@ use smithay::{ delegate_fractional_scale, delegate_keyboard_shortcuts_inhibit, delegate_layer_shell, delegate_output, delegate_pointer_constraints, delegate_pointer_gestures, delegate_presentation, delegate_primary_selection, delegate_relative_pointer, delegate_seat, - delegate_security_context, delegate_shm, delegate_tablet_manager, delegate_viewporter, - delegate_xdg_activation, delegate_xwayland_keyboard_grab, delegate_xwayland_shell, + delegate_security_context, delegate_shm, delegate_single_pixel_buffer, delegate_tablet_manager, + delegate_viewporter, delegate_xdg_activation, delegate_xwayland_keyboard_grab, + delegate_xwayland_shell, desktop::{ self, find_popup_root_surface, get_popup_toplevel_coords, layer_map_for_output, space::SpaceElement, PopupKind, PopupManager, WindowSurfaceType, @@ -1167,6 +1168,8 @@ delegate_xdg_activation!(State); delegate_pointer_gestures!(State); +delegate_single_pixel_buffer!(State); + impl Pinnacle { fn position_popup(&self, popup: &PopupSurface) { trace!("State::position_popup"); diff --git a/src/state.rs b/src/state.rs index 2e464d6..9cd46f7 100644 --- a/src/state.rs +++ b/src/state.rs @@ -76,6 +76,7 @@ use smithay::{ xdg::{decoration::XdgDecorationState, XdgShellState}, }, shm::ShmState, + single_pixel_buffer::SinglePixelBufferState, socket::ListeningSocketSource, tablet_manager::TabletManagerState, viewporter::ViewporterState, @@ -155,6 +156,7 @@ pub struct Pinnacle { pub xdg_decoration_state: XdgDecorationState, pub kde_decoration_state: KdeDecorationState, pub pointer_gestures_state: PointerGesturesState, + pub single_pixel_buffer_state: SinglePixelBufferState, pub lock_state: LockState, @@ -397,6 +399,7 @@ impl Pinnacle { org_kde_kwin_server_decoration_manager::Mode::Client, ), pointer_gestures_state: PointerGesturesState::new::(&display_handle), + single_pixel_buffer_state: SinglePixelBufferState::new::(&display_handle), lock_state: LockState::default(),