feat: support single pixel buffers

This commit is contained in:
Samuel Onoja committed 2026-09-25 00:43:26 +01:00
1 parent 501521cf78
commit e59a524827
2 files changed
+5

No files matched your search

+1
View File
@@ -161,6 +161,7 @@ smithay::delegate_primary_selection!(Ferese);
smithay::delegate_relative_pointer!(Ferese); smithay::delegate_relative_pointer!(Ferese);
smithay::delegate_seat!(Ferese); smithay::delegate_seat!(Ferese);
smithay::delegate_shm!(Ferese); smithay::delegate_shm!(Ferese);
smithay::delegate_single_pixel_buffer!(Ferese);
smithay::delegate_viewporter!(Ferese); smithay::delegate_viewporter!(Ferese);
smithay::delegate_xdg_activation!(Ferese); smithay::delegate_xdg_activation!(Ferese);
smithay::delegate_xdg_decoration!(Ferese); smithay::delegate_xdg_decoration!(Ferese);
+4
View File
@@ -41,6 +41,7 @@ use smithay::{
shell::xdg::decoration::XdgDecorationState, shell::xdg::decoration::XdgDecorationState,
shell::xdg::{SurfaceCachedState, XdgShellState}, shell::xdg::{SurfaceCachedState, XdgShellState},
shm::ShmState, shm::ShmState,
single_pixel_buffer::SinglePixelBufferState,
socket::ListeningSocketSource, socket::ListeningSocketSource,
viewporter::ViewporterState, viewporter::ViewporterState,
xdg_activation::XdgActivationState, xdg_activation::XdgActivationState,
@@ -75,6 +76,7 @@ pub struct Ferese {
pub relative_pointer_state: RelativePointerManagerState, pub relative_pointer_state: RelativePointerManagerState,
pub seat_state: SeatState<Self>, pub seat_state: SeatState<Self>,
pub shm_state: ShmState, pub shm_state: ShmState,
pub single_pixel_buffer_state: SinglePixelBufferState,
pub viewporter_state: ViewporterState, pub viewporter_state: ViewporterState,
pub layer_shell_state: WlrLayerShellState, pub layer_shell_state: WlrLayerShellState,
pub xdg_activation_state: XdgActivationState, pub xdg_activation_state: XdgActivationState,
@@ -92,6 +94,7 @@ impl Ferese {
let decoration_state = XdgDecorationState::new::<Self>(&display_handle); let decoration_state = XdgDecorationState::new::<Self>(&display_handle);
let fractional_scale_state = FractionalScaleManagerState::new::<Self>(&display_handle); let fractional_scale_state = FractionalScaleManagerState::new::<Self>(&display_handle);
let shm_state = ShmState::new::<Self>(&display_handle, Vec::new()); let shm_state = ShmState::new::<Self>(&display_handle, Vec::new());
let single_pixel_buffer_state = SinglePixelBufferState::new::<Self>(&display_handle);
let output_manager_state = OutputManagerState::new_with_xdg_output::<Self>(&display_handle); let output_manager_state = OutputManagerState::new_with_xdg_output::<Self>(&display_handle);
let pointer_constraints_state = PointerConstraintsState::new::<Self>(&display_handle); let pointer_constraints_state = PointerConstraintsState::new::<Self>(&display_handle);
let presentation_state = let presentation_state =
@@ -138,6 +141,7 @@ impl Ferese {
relative_pointer_state, relative_pointer_state,
seat_state, seat_state,
shm_state, shm_state,
single_pixel_buffer_state,
viewporter_state, viewporter_state,
layer_shell_state, layer_shell_state,
xdg_activation_state, xdg_activation_state,