diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-08 14:44:40 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-04-14 17:07:26 +0200 |
commit | dae2deb3c9d22fe51c2c75328d693fdc92ea9b87 (patch) | |
tree | 4b3764e3777dda58a1873ad8ffb333e97ce629aa /include | |
parent | 42edd36785fac0a089d99f6b10d5ce5923c6b90f (diff) |
compositor: add wlr_surface_set_preferred_buffer_transform()
References: https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/220
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_compositor.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index f65fbf84..e4ac7879 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -165,6 +165,8 @@ struct wlr_surface { bool opaque; int32_t preferred_buffer_scale; + bool preferred_buffer_transform_sent; + enum wl_output_transform preferred_buffer_transform; }; struct wlr_renderer; @@ -331,6 +333,15 @@ void wlr_surface_set_preferred_buffer_scale(struct wlr_surface *surface, int32_t scale); /** + * Set the preferred buffer transform for the surface. + * + * This sends an event to the client indicating the preferred transform to use + * for buffers attached to this surface. + */ +void wlr_surface_set_preferred_buffer_transform(struct wlr_surface *surface, + enum wl_output_transform transform); + +/** * Create the wl_compositor global, which can be used by clients to create * surfaces and regions. * |