aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-23 15:58:49 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-23 15:58:49 -0400
commit41124592dd55b11e39a18b0aa843511e3e4597bb (patch)
tree4d85d4d109e4cd8bde91b18f5dcccd2a12d22683 /include
parentb6fc882782ef17fac09c773adcc5cee9127cba72 (diff)
wlr_scene: Hook up HIGHLIGHT logic
This will display red translucent rectangles on the screen regions that have been damaged. These rectangles will fade out over the span of 250 msecs. If the area is damaged again while the region is fading out, the timer is reset. Let's also disable direct scan out when this option is enabled, or else we won't be able to render the highlight damage regions.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_scene.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index 2625dd80..0802014e 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -91,6 +91,7 @@ struct wlr_scene {
struct wl_listener presentation_destroy;
enum wlr_scene_debug_damage_option debug_damage_option;
+ struct wl_list damage_highlight_regions;
};
/** A sub-tree in the scene-graph. */