atagen

monolith

public
Star0
Watch0

Commit e01b19ca3e20

tarball

atagen <boss@atagen.co>2026-10-19 08:38 UTC

1 file changed+3-0
globals: advertise wp_viewporter

Video players such as mpv scale buffers through wp_viewport and found no global. RendererSurfaceState already derives the source rectangle and destination from the viewport, and render-vk samples fractional source rectangles.
Modified file: crates/monolith/src/globals.rs+3 additions
@@ -28,6 +28,7 @@ use smithay::wayland::shell::wlr_layer::WlrLayerShellState;
2828 use smithay::wayland::shell::xdg::XdgShellState;
2929 use smithay::wayland::shell::xdg::decoration::XdgDecorationState;
3030 use smithay::wayland::shm::ShmState;
31+use smithay::wayland::viewporter::ViewporterState;
3132 use smithay::wayland::xdg_activation::XdgActivationState;
3233 use smithay::wayland::xwayland_shell::XWaylandShellState;
3334
@@ -57,6 +58,7 @@ pub struct Protocols {
5758 _dmabuf_global: DmabufGlobal,
5859 _output_manager: OutputManagerState,
5960 _cursor_shape: CursorShapeManagerState,
61+ _viewporter: ViewporterState,
6062 }
6163
6264 impl Protocols {
@@ -115,6 +117,7 @@ impl Protocols {
115117 _dmabuf_global: dmabuf_global,
116118 _output_manager: OutputManagerState::new_with_xdg_output::<State>(dh),
117119 _cursor_shape: CursorShapeManagerState::new::<State>(dh),
120+ _viewporter: ViewporterState::new::<State>(dh),
118121 }
119122 }
120123 }