From 41124592dd55b11e39a18b0aa843511e3e4597bb Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 23 May 2022 15:58:49 -0400 Subject: 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. --- include/wlr/types/wlr_scene.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/wlr') 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. */ -- cgit v1.2.3