aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-09-06 18:38:01 +0200
committerSimon Ser <contact@emersion.fr>2021-09-06 19:19:45 +0200
commit24c397dbf888e9dc8a8b5ce4010f34eeb9158881 (patch)
tree66b2b0c98c12890844f3a6024e37994813934dc4 /include/wlr
parentbb82b6dadaea244356d54c33cc3f0e8a620cd833 (diff)
viewporter: add doc comment explaining compositor requirements
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_viewporter.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_viewporter.h b/include/wlr/types/wlr_viewporter.h
index b695420d..0fdd34c8 100644
--- a/include/wlr/types/wlr_viewporter.h
+++ b/include/wlr/types/wlr_viewporter.h
@@ -11,6 +11,17 @@
#include <wayland-server-core.h>
+/**
+ * Implementation for the viewporter protocol.
+ *
+ * When enabling viewporter, compositors need to update their rendering logic:
+ *
+ * - The size of the surface texture may not match the surface size anymore.
+ * Compositors must use the surface size only.
+ * - Compositors must call wlr_render_subtexture_with_matrix when rendering a
+ * surface texture with the source box returned by
+ * wlr_surface_get_buffer_source_box.
+ */
struct wlr_viewporter {
struct wl_global *global;