mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-25 09:59:21 +01:00
Add single-pixel-buffer protocol
Some checks failed
CI (Pinnacle) / Build (push) Has been cancelled
CI (Pinnacle) / Run tests (push) Has been cancelled
CI (Pinnacle) / Check formatting (push) Has been cancelled
CI (Pinnacle) / Clippy check (push) Has been cancelled
Build and Publish Lua Docs / Build (push) Has been cancelled
Build Rust Docs / Build docs (push) Has been cancelled
Some checks failed
CI (Pinnacle) / Build (push) Has been cancelled
CI (Pinnacle) / Run tests (push) Has been cancelled
CI (Pinnacle) / Check formatting (push) Has been cancelled
CI (Pinnacle) / Clippy check (push) Has been cancelled
Build and Publish Lua Docs / Build (push) Has been cancelled
Build Rust Docs / Build docs (push) Has been cancelled
This commit is contained in:
parent
bfc63445d1
commit
0fb88b78e3
2 changed files with 8 additions and 2 deletions
|
@ -19,8 +19,9 @@ use smithay::{
|
||||||
delegate_fractional_scale, delegate_keyboard_shortcuts_inhibit, delegate_layer_shell,
|
delegate_fractional_scale, delegate_keyboard_shortcuts_inhibit, delegate_layer_shell,
|
||||||
delegate_output, delegate_pointer_constraints, delegate_pointer_gestures,
|
delegate_output, delegate_pointer_constraints, delegate_pointer_gestures,
|
||||||
delegate_presentation, delegate_primary_selection, delegate_relative_pointer, delegate_seat,
|
delegate_presentation, delegate_primary_selection, delegate_relative_pointer, delegate_seat,
|
||||||
delegate_security_context, delegate_shm, delegate_tablet_manager, delegate_viewporter,
|
delegate_security_context, delegate_shm, delegate_single_pixel_buffer, delegate_tablet_manager,
|
||||||
delegate_xdg_activation, delegate_xwayland_keyboard_grab, delegate_xwayland_shell,
|
delegate_viewporter, delegate_xdg_activation, delegate_xwayland_keyboard_grab,
|
||||||
|
delegate_xwayland_shell,
|
||||||
desktop::{
|
desktop::{
|
||||||
self, find_popup_root_surface, get_popup_toplevel_coords, layer_map_for_output,
|
self, find_popup_root_surface, get_popup_toplevel_coords, layer_map_for_output,
|
||||||
space::SpaceElement, PopupKind, PopupManager, WindowSurfaceType,
|
space::SpaceElement, PopupKind, PopupManager, WindowSurfaceType,
|
||||||
|
@ -1167,6 +1168,8 @@ delegate_xdg_activation!(State);
|
||||||
|
|
||||||
delegate_pointer_gestures!(State);
|
delegate_pointer_gestures!(State);
|
||||||
|
|
||||||
|
delegate_single_pixel_buffer!(State);
|
||||||
|
|
||||||
impl Pinnacle {
|
impl Pinnacle {
|
||||||
fn position_popup(&self, popup: &PopupSurface) {
|
fn position_popup(&self, popup: &PopupSurface) {
|
||||||
trace!("State::position_popup");
|
trace!("State::position_popup");
|
||||||
|
|
|
@ -76,6 +76,7 @@ use smithay::{
|
||||||
xdg::{decoration::XdgDecorationState, XdgShellState},
|
xdg::{decoration::XdgDecorationState, XdgShellState},
|
||||||
},
|
},
|
||||||
shm::ShmState,
|
shm::ShmState,
|
||||||
|
single_pixel_buffer::SinglePixelBufferState,
|
||||||
socket::ListeningSocketSource,
|
socket::ListeningSocketSource,
|
||||||
tablet_manager::TabletManagerState,
|
tablet_manager::TabletManagerState,
|
||||||
viewporter::ViewporterState,
|
viewporter::ViewporterState,
|
||||||
|
@ -155,6 +156,7 @@ pub struct Pinnacle {
|
||||||
pub xdg_decoration_state: XdgDecorationState,
|
pub xdg_decoration_state: XdgDecorationState,
|
||||||
pub kde_decoration_state: KdeDecorationState,
|
pub kde_decoration_state: KdeDecorationState,
|
||||||
pub pointer_gestures_state: PointerGesturesState,
|
pub pointer_gestures_state: PointerGesturesState,
|
||||||
|
pub single_pixel_buffer_state: SinglePixelBufferState,
|
||||||
|
|
||||||
pub lock_state: LockState,
|
pub lock_state: LockState,
|
||||||
|
|
||||||
|
@ -397,6 +399,7 @@ impl Pinnacle {
|
||||||
org_kde_kwin_server_decoration_manager::Mode::Client,
|
org_kde_kwin_server_decoration_manager::Mode::Client,
|
||||||
),
|
),
|
||||||
pointer_gestures_state: PointerGesturesState::new::<State>(&display_handle),
|
pointer_gestures_state: PointerGesturesState::new::<State>(&display_handle),
|
||||||
|
single_pixel_buffer_state: SinglePixelBufferState::new::<State>(&display_handle),
|
||||||
|
|
||||||
lock_state: LockState::default(),
|
lock_state: LockState::default(),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue