backend/wayland: add scaling support for output layers

Use the viewporter protocol to scale output layers.
This commit is contained in:
Simon Ser 2023-04-20 10:31:22 +02:00 committed by Alexander Orzechowski
parent 46a014bf47
commit 4c5eadecce
4 changed files with 27 additions and 2 deletions

View file

@ -48,6 +48,7 @@ struct wlr_wl_backend {
struct wl_drm *legacy_drm;
struct xdg_activation_v1 *activation_v1;
struct wl_subcompositor *subcompositor;
struct wp_viewporter *viewporter;
char *drm_render_name;
};
@ -71,6 +72,7 @@ struct wlr_wl_output_layer {
struct wl_surface *surface;
struct wl_subsurface *subsurface;
struct wp_viewport *viewport;
bool mapped;
};