mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
backend/wayland: add scaling support for output layers
Use the viewporter protocol to scale output layers.
This commit is contained in:
parent
46a014bf47
commit
4c5eadecce
4 changed files with 27 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue