aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-21 10:20:21 +0100
committerAlexander Orzechowski <alex@ozal.ski>2023-06-30 04:31:50 +0000
commit13f096b0ace99e3709bc29ea3287afef6ebaf238 (patch)
tree411d6c7e1f864f4933c2706f5d093237a4eb4765 /include
parent6eff8651d3c692b947a45db68eaa0a21b2637884 (diff)
output-layer: add wlr_output_layer_state.damage
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3593
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_output_layer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output_layer.h b/include/wlr/types/wlr_output_layer.h
index 4e28d559..f4aef058 100644
--- a/include/wlr/types/wlr_output_layer.h
+++ b/include/wlr/types/wlr_output_layer.h
@@ -68,6 +68,9 @@ struct wlr_output_layer_state {
struct wlr_fbox src_box;
// Destination box in output-buffer-local coordinates
struct wlr_box dst_box;
+ // Damaged region since last commit in buffer-local coordinates. Leave NULL
+ // to damage the whole buffer.
+ const pixman_region32_t *damage;
// Populated by the backend after wlr_output_test() and wlr_output_commit(),
// indicates whether the backend has acknowledged and will take care of