aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-12-01 10:56:35 +0100
committeremersion <contact@emersion.fr>2018-12-01 10:56:35 +0100
commit6aaefad40db8b4c972d30a5841c1ff819bb0da09 (patch)
tree4e451fc441ee78882c6c8f990796bc14f4e7ed01 /include/wlr
parenta22311ec76802d2d8eb4bc3fcb3e9b713f7cd1c6 (diff)
output: switch swap_buffers damage to output-buffer-local coords
This is one more step towards [1]. This gives more freedom to the compositor wrt. how it handles damage. [1]: https://github.com/swaywm/wlroots/issues/1363
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 6d38152a..22822b11 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -121,7 +121,7 @@ struct wlr_output {
struct wlr_output_event_swap_buffers {
struct wlr_output *output;
struct timespec *when;
- pixman_region32_t *damage;
+ pixman_region32_t *damage; // output-buffer-local coordinates
};
enum wlr_output_present_flag {
@@ -203,6 +203,9 @@ bool wlr_output_preferred_read_format(struct wlr_output *output,
* NULL. If the compositor doesn't support damage tracking, set `damage` to
* NULL.
*
+ * Damage is given in output-buffer-local coordinates (ie. scaled and
+ * transformed).
+ *
* Swapping buffers schedules a `frame` event.
*/
bool wlr_output_swap_buffers(struct wlr_output *output, struct timespec *when,